From 8f883d9e11761ff00c305ec5f5ba1153508108c2 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Date: Thu, 4 Aug 2022 07:35:15 +0200 Subject: [PATCH] [FIX] repair_type: remove destination location for finished product The destination location was removed from the repair since 12.0. --- repair_type/models/repair_type.py | 5 ----- repair_type/tests/test_repair_type.py | 6 ------ repair_type/views/repair_type.xml | 2 -- 3 files changed, 13 deletions(-) diff --git a/repair_type/models/repair_type.py b/repair_type/models/repair_type.py index 318298486..e7b976310 100644 --- a/repair_type/models/repair_type.py +++ b/repair_type/models/repair_type.py @@ -14,11 +14,6 @@ class RepairType(models.Model): "Source Location", help="This is the location where the product to repair is located.", ) - destination_location_id = fields.Many2one( - "stock.location", - "Destination Location", - help="This is the location where the product repaired will be located.", - ) source_location_add_part_id = fields.Many2one( "stock.location", "Source Location Add Component", diff --git a/repair_type/tests/test_repair_type.py b/repair_type/tests/test_repair_type.py index a6f8e57d4..19e8d9e0f 100644 --- a/repair_type/tests/test_repair_type.py +++ b/repair_type/tests/test_repair_type.py @@ -29,9 +29,6 @@ class TestRepairType(TransactionCase): { "name": "Repairings Office 1", "source_location_id": self.env.ref("stock.stock_location_stock").id, - "destination_location_id": self.env.ref( - "stock.stock_location_customers" - ).id, "source_location_add_part_id": self.env.ref( "stock.stock_location_components" ).id, @@ -50,9 +47,6 @@ class TestRepairType(TransactionCase): "source_location_id": self.env.ref( "stock.stock_location_components" ).id, - "destination_location_id": self.env.ref( - "stock.stock_location_stock" - ).id, "source_location_add_part_id": self.env.ref( "stock.location_refrigerator_small" ).id, diff --git a/repair_type/views/repair_type.xml b/repair_type/views/repair_type.xml index 6feeb1220..dd164e8b8 100644 --- a/repair_type/views/repair_type.xml +++ b/repair_type/views/repair_type.xml @@ -27,7 +27,6 @@ - @@ -48,7 +47,6 @@ -