[FIX] account: avoid invisible product_uom_id
For a non well identified reason, the user doesn't have the uom group to see the field during the test. this commit adds the group to the user to make it visible during the test as a simple fix. closes odoo/odoo#95741 Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
This commit is contained in:
@@ -125,6 +125,7 @@ class TestAccountMoveInInvoiceOnchanges(AccountTestInvoicingCommon):
|
||||
'amount_tax': 168.0,
|
||||
'amount_total': 1128.0,
|
||||
}
|
||||
cls.env.user.groups_id += cls.env.ref('uom.group_uom')
|
||||
|
||||
def setUp(self):
|
||||
super(TestAccountMoveInInvoiceOnchanges, self).setUp()
|
||||
|
||||
@@ -128,6 +128,7 @@ class TestAccountMoveOutInvoiceOnchanges(AccountTestInvoicingCommon):
|
||||
'amount_tax': 210.0,
|
||||
'amount_total': 1410.0,
|
||||
}
|
||||
cls.env.user.groups_id += cls.env.ref('uom.group_uom')
|
||||
|
||||
def setUp(self):
|
||||
super(TestAccountMoveOutInvoiceOnchanges, self).setUp()
|
||||
|
||||
Reference in New Issue
Block a user