~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to tender_flow/report/purchase_report.py

  • Committer: Quentin THEURET
  • Date: 2013-09-03 08:10:46 UTC
  • mto: This revision was merged to the branch mainline in revision 1803.
  • Revision ID: qt@tempo-consulting.fr-20130903081046-zibw5nfe1xwktcu2
UTP-879 [FIX] Remove the sum of qties when no product selected

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
                if 'product_id' in data and data['product_id']:
228
228
                    uom = self.pool.get('product.product').browse(cr, uid, data['product_id'][0], context=context).uom_id
229
229
                    data.update({'product_uom': (uom.id, uom.name)})
 
230
                if 'quantity' in data and not 'product_id' in data:
 
231
                    data.update({'quantity': ''})
230
232
                
231
233
        return res
232
234