[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:
parent
01f1d91006
commit
d0493ee847
|
@ -785,7 +785,7 @@ class sale_order(osv.osv):
|
||||||
order_line.append([4, line_id])
|
order_line.append([4, line_id])
|
||||||
else:
|
else:
|
||||||
order_line.append(line)
|
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):
|
def test_procurements_done(self, cr, uid, ids, context=None):
|
||||||
for sale in self.browse(cr, uid, ids, context=context):
|
for sale in self.browse(cr, uid, ids, context=context):
|
||||||
|
|
Loading…
Reference in New Issue