Skip to content

Commit

Permalink
[14.0][IMP] custom_mrp_descarga: (#310)
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 7, 2024
1 parent 75b4fb7 commit 571fe19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_mrp_descarga/models/stock_production_lot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ def _compute_average_price(self):
lambda c: c.state == "done" and (
c.location_dest_id.usage == "internal"))
quartering = line.move_line_ids.filtered(
lambda c: c.production_id and c.production_id.quartering)
lambda c: c.production_id and c.production_id.quartering and (
c.location_id == c.production_id.location_src_id
)
)
if clasified:
amount_total = sum(clasified.mapped("amount"))
qty_done = sum(clasified.mapped("qty_done"))
Expand Down

0 comments on commit 571fe19

Please sign in to comment.