[FIX] #416908 computation of invoice lines
authorFabien Pinckaers <fp@tinyerp.com>
Tue, 15 Sep 2009 07:42:59 +0000 (09:42 +0200)
committerFabien Pinckaers <fp@tinyerp.com>
Tue, 15 Sep 2009 07:42:59 +0000 (09:42 +0200)
bzr revid: fp@tinyerp.com-20090915074259-bbnrkmbftvawuz9d

addons/account/invoice.py

index be9b4f6..467bf02 100644 (file)
@@ -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