Skip to content

Commit

Permalink
[14.0][IMP] custom_mrp_line_cost: Change if condition. (#315)
Browse files Browse the repository at this point in the history
Co-authored-by: Tu Nombre <[email protected]>
  • Loading branch information
Berezi and Tu Nombre authored May 21, 2024
1 parent 8b62c76 commit 0ab4b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_mrp_line_cost/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _compute_base_price(self):
lambda c: c.lot_id.name == line.lot_id.name
)
)
if not entry_same_lots and sum(entry_same_lots.mapped("qty_done")) == 0:
if not entry_same_lots or sum(entry_same_lots.mapped("qty_done")) == 0:
cost = 0
else:
entry_cost = sum(
Expand Down

0 comments on commit 0ab4b60

Please sign in to comment.