Skip to content

Commit

Permalink
[FIX] product_pack: update_price from sale order
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-weiss committed May 18, 2023
1 parent 7d01c2f commit 65ed83c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sale_ux/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ def update_prices(self):
else:
line.expand_pack_line(write=True)

line.product_uom_change()
line._onchange_discount()
if pack_installed and line.pack_child_line_ids or line.pack_parent_line_id:
continue
else:
line.product_uom_change()
line._onchange_discount()
return True

def _compute_pack_lines_prices(self, line):
Expand Down

0 comments on commit 65ed83c

Please sign in to comment.