From 60e851763746daf28904f3eb3c933cd0fa8918d2 Mon Sep 17 00:00:00 2001 From: qdp Date: Wed, 26 Nov 2008 18:04:17 +0100 Subject: [PATCH] *bugfix (part 2): fields unit_amount, product_id and product_uom_id weren't filled when validating an invoice bzr revid: qdp@tinyerp.com-20081126170417-ejk49ic3anqfyhqd --- addons/account/invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 4b9d1a4f6f3..732792fb6ae 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -611,6 +611,8 @@ class account_invoice(osv.osv): 'tax_amount': x.get('tax_amount', False), 'ref':x.get('ref',False), 'quantity':x.get('quantity',1.00), + 'product_id':x.get('product_id', False), + 'product_uom_id':x.get('uos_id',False), 'analytic_account_id':x.get('account_analytic_id',False), }