Skip to content

Commit

Permalink
sale_order_general_discount_triple: fix onchange
Browse files Browse the repository at this point in the history
Use `update` instead of `write` to avoid caching issue
  • Loading branch information
AshishHirapara authored and RabbitJon-S73 committed Jun 22, 2023
1 parent d4d5f9d commit d0cd7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_order_general_discount_triple/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ def onchange_general_discount(self):
)
if general_discount:
for record in self:
record.order_line.write({general_discount: record.general_discount})
record.order_line.update({general_discount: record.general_discount})

0 comments on commit d0cd7d7

Please sign in to comment.