From d0fb8f097aafcf1a0247ba51db2a026f8750850f Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Thu, 19 Oct 2023 16:25:56 +0200 Subject: [PATCH] [FIX] maintenance_purchase: When we copy a purchase, the equipemnts shouldn't be maintained --- maintenance_purchase/models/purchase_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/maintenance_purchase/models/purchase_order.py b/maintenance_purchase/models/purchase_order.py index 8abee0cc6..f5e650391 100644 --- a/maintenance_purchase/models/purchase_order.py +++ b/maintenance_purchase/models/purchase_order.py @@ -74,6 +74,7 @@ class PurchaseOrderLine(models.Model): equipment_ids = fields.Many2many( comodel_name="maintenance.equipment", string="Equipments", + copy=False, ) equipment_count = fields.Integer(compute="_compute_equipment_count")