[IMP] Remove domain from onchange method and put it in field view

This commit is contained in:
Florian da Costa
2023-11-28 12:56:20 +01:00
committed by AaronHForgeFlow
parent 9956118af7
commit 6c67346b08
2 changed files with 2 additions and 1 deletions

View File

@@ -730,7 +730,7 @@ class RmaOrderLine(models.Model):
)
if self.lot_id.product_id != self.product_id:
self.lot_id = False
return {"domain": {"lot_id": [("product_id", "=", self.product_id.id)]}}
return result
@api.onchange("operation_id")
def _onchange_operation_id(self):