Skip to content

Commit

Permalink
FIX purchase order line price in intercompany
Browse files Browse the repository at this point in the history
  • Loading branch information
Kev-Roche committed Jun 26, 2024
1 parent df2f5b0 commit 56b3ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_purchase_inter_company/models/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def button_approve(self, force=False):
for order in self.filtered("auto_sale_order_id"):
for line in order.order_line.sudo():
if line.auto_sale_line_id:
line.auto_sale_line_id.price_unit = line.price_unit
line.price_unit = line.auto_sale_line_id.price_unit
return super().button_approve(force)


Expand Down

0 comments on commit 56b3ef5

Please sign in to comment.