summaryrefslogtreecommitdiff
path: root/addons/repair/tests
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2018-11-08 15:26:07 +0000
committerSimon Lejeune <sle@openerp.com>2018-11-14 10:52:03 +0000
commitee1ea10c8cc35c13439ef455a0eef454b7abaf85 (patch)
treee3cda4c77adbf825eacebdb5992fe352bd8c84bb /addons/repair/tests
parent5df621f66550a2832ee69e4ef23a953b5ef4724e (diff)
[IMP] stock, mrp, repair: production location for each company
Each company should have its own production location to allow specific account on it. TASK-ID: 1882269
Diffstat (limited to 'addons/repair/tests')
-rw-r--r--addons/repair/tests/test_repair.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/repair/tests/test_repair.py b/addons/repair/tests/test_repair.py
index 568ba8abce6..17b19f86f98 100644
--- a/addons/repair/tests/test_repair.py
+++ b/addons/repair/tests/test_repair.py
@@ -59,7 +59,7 @@ class TestRepair(AccountingTestCase):
'price_unit': price_unit,
'repair_id': repair_id,
'location_id': self.env.ref('stock.stock_location_stock').id,
- 'location_dest_id': self.env.ref('stock.location_production').id,
+ 'location_dest_id': product_to_add.property_stock_production.id,
})
def _create_simple_fee(self, repair_id=False, qty=0.0, price_unit=0.0):
@@ -145,7 +145,7 @@ class TestRepair(AccountingTestCase):
'Repaired product went to the wrong location')
self.assertEqual(repair.operations.move_id.location_id.id, self.env.ref('stock.stock_location_stock').id,
'Consumed product was taken in the wrong location')
- self.assertEqual(repair.operations.move_id.location_dest_id.id, self.env.ref('stock.location_production').id,
+ self.assertEqual(repair.operations.move_id.location_dest_id.id, self.env.ref('product.product_product_5').property_stock_production.id,
'Consumed product went to the wrong location')
# I define Invoice Method 'No Invoice' option in this repair order.