IMP maintenance_repair Guard around not having stock_analytic installed, improve form of code.

This commit is contained in:
Jared Kipe
2020-01-27 15:40:29 -08:00
parent 667bc66618
commit c67db6f9ef
2 changed files with 19 additions and 20 deletions

View File

@@ -20,7 +20,7 @@ class TestMaintenanceRepair(common.TransactionCase):
})
self.assertEqual(request.repair_status, 'no')
product_to_repair = self.env.ref('product.product_product_24_product_template')
product_to_repair = self.env.ref('product.product_product_24_product_template').product_variant_id
line = self.env['maintenance.request.repair.line'].create({
'request_id': request.id,
'product_id': product_to_repair.id,