[FIX] sale_mrp: avoid useless changes on UoM in tests
This commit is contained in:
@@ -40,10 +40,6 @@ class TestSaleMrpFlow(common.TransactionCase):
|
||||
self.uom_kg = self.env['uom.uom'].search([('category_id', '=', self.categ_kgm.id), ('uom_type', '=', 'reference')], limit=1)
|
||||
self.uom_kg.write({
|
||||
'name': 'Test-KG',
|
||||
'category_id': self.categ_kgm.id,
|
||||
'factor_inv': 1,
|
||||
'factor': 1,
|
||||
'uom_type': 'reference',
|
||||
'rounding': 0.000001})
|
||||
self.uom_gm = self.UoM.create({
|
||||
'name': 'Test-G',
|
||||
@@ -54,9 +50,6 @@ class TestSaleMrpFlow(common.TransactionCase):
|
||||
self.uom_unit = self.env['uom.uom'].search([('category_id', '=', self.categ_unit.id), ('uom_type', '=', 'reference')], limit=1)
|
||||
self.uom_unit.write({
|
||||
'name': 'Test-Unit',
|
||||
'category_id': self.categ_unit.id,
|
||||
'factor': 1,
|
||||
'uom_type': 'reference',
|
||||
'rounding': 1.0})
|
||||
self.uom_dozen = self.UoM.create({
|
||||
'name': 'Test-DozenA',
|
||||
|
||||
Reference in New Issue
Block a user