From 63e1d3ca03f61f9107cb42046cad49f6b210155b Mon Sep 17 00:00:00 2001 From: Berezi <82805447+Berezi@users.noreply.github.com> Date: Wed, 17 Jul 2024 09:45:18 +0200 Subject: [PATCH] [14.0][IMP] custom_mrp_descarga: Remove part of write. (#379) Co-authored-by: Tu Nombre --- custom_mrp_descarga/models/stock_move_line.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/custom_mrp_descarga/models/stock_move_line.py b/custom_mrp_descarga/models/stock_move_line.py index b7deed47a..9910924f6 100644 --- a/custom_mrp_descarga/models/stock_move_line.py +++ b/custom_mrp_descarga/models/stock_move_line.py @@ -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