[FIX] sale: recompute tax amount after fiscal position change

When changing the fiscal position of a sale.order, the taxes are recomputed
which means that total amounts may no longer be correct (need to press 'update'
button).
Reset the amount_* fields to force the recomputation at write.
Fixes lp:712772, opw 618419
This commit is contained in:
Martin Trigaux 2015-04-10 11:41:19 +02:00
parent 01f1d91006
commit d0493ee847
1 changed files with 1 additions and 1 deletions

View File

@ -785,7 +785,7 @@ class sale_order(osv.osv):
order_line.append([4, line_id])
else:
order_line.append(line)
return {'value': {'order_line': order_line}}
return {'value': {'order_line': order_line, 'amount_untaxed': False, 'amount_tax': False, 'amount_total': False}}
def test_procurements_done(self, cr, uid, ids, context=None):
for sale in self.browse(cr, uid, ids, context=context):