diff --git a/ssi_rma/models/rma_customer.py b/ssi_rma/models/rma_customer.py index 4846b8a..38d42f3 100644 --- a/ssi_rma/models/rma_customer.py +++ b/ssi_rma/models/rma_customer.py @@ -14,6 +14,11 @@ class RMACustomer(models.Model): string="Type", default="customer", ) + operation_id = fields.Many2one( + domain=[ + ("direction", "=", "customer"), + ], + ) line_ids = fields.One2many( comodel_name="rma_customer_line", inverse_name="order_id", diff --git a/ssi_rma/models/rma_supplier.py b/ssi_rma/models/rma_supplier.py index 338928d..4e6ec6c 100644 --- a/ssi_rma/models/rma_supplier.py +++ b/ssi_rma/models/rma_supplier.py @@ -14,6 +14,11 @@ class RMASupplier(models.Model): string="Type", default="supplier", ) + operation_id = fields.Many2one( + domain=[ + ("direction", "=", "supplier"), + ], + ) line_ids = fields.One2many( comodel_name="rma_supplier_line", inverse_name="order_id",