[FIX] Correct api.depends to avoid relying on non-stored computed field

This commit is contained in:
Akim Juillerat
2023-12-27 19:10:56 +01:00
parent 433931617f
commit b701c3bb97

View File

@@ -28,8 +28,8 @@ class MrpProduction(models.Model):
@api.depends(
# New field dependencies to compute the propagated lot on the
# "mrp_production_subcontracting_form_view" view.
"move_line_raw_ids.qty_done",
"move_line_raw_ids.lot_id",
"move_raw_ids.move_line_ids.qty_done",
"move_raw_ids.move_line_ids.lot_id",
)
def _compute_propagated_lot_producing(self):
return super()._compute_propagated_lot_producing()