Skip to content

Commit

Permalink
[14.0][IMP] custom_mrp_descarga: Remove part of write. (avanzosc#379)
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 Jul 17, 2024
1 parent c44ef44 commit 63e1d3c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions custom_mrp_descarga/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,4 @@ def write(self, values):
if line.move_id.state == "cancel" and values.get("qty_done") != 0:
line.move_id.state = "done"
line.state = "done"
if "qty_done" or "amount" or "state" in values:
for line in self:
if line.lot_id and line.company_id.paasa:
quartering = line.lot_id.move_line_ids.filtered(
lambda c: c.production_id
and c.production_id.quartering
and (c.location_id == c.production_id.location_src_id)
)
for record in quartering:
if record.standard_price != line.lot_id.average_price:
record.standard_price = line.lot_id.average_price
return result

0 comments on commit 63e1d3c

Please sign in to comment.