From 4c3b285cbfed2c5920a5aed97e214b29e722b76c Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Tue, 15 Sep 2009 09:42:59 +0200 Subject: [PATCH] [FIX] #416908 computation of invoice lines bzr revid: fp@tinyerp.com-20090915074259-bbnrkmbftvawuz9d --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index be9b4f63246..467bf02f661 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -435,7 +435,7 @@ class account_invoice(osv.osv): for taxe in ait_obj.compute(cr, uid, id, context=context).values(): ait_obj.create(cr, uid, taxe) # Update the stored value (fields.function), so we write to trigger recompute - self.pool.get('account.invoice').write(cr, uid, ids, {}, context=context) + self.pool.get('account.invoice').write(cr, uid, ids, {'invoice_line':[]}, context=context) # self.pool.get('account.invoice').write(cr, uid, ids, {}, context=context) return True