Skip to content

Commit

Permalink
[FIX] sale_order_price_recalculation: Use write instead of update
Browse files Browse the repository at this point in the history
This way, all tracking events can take place.

Closes #848
  • Loading branch information
pedrobaeza committed May 19, 2019
1 parent 85b32d0 commit 922fae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_order_price_recalculation/models/sale_order.py
Expand Up @@ -20,7 +20,7 @@ def recalculate_prices(self):
# we make this to isolate changed values:
line2.product_uom_change()
line2._onchange_discount()
line.update({
line.write({
'price_unit': line2.price_unit,
'discount': line2.discount,
})
Expand Down

0 comments on commit 922fae2

Please sign in to comment.