[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:
Xavier-Do
2022-07-11 20:25:17 +02:00
parent 3d7c14a7e4
commit 2c6e73a6f3
2 changed files with 2 additions and 0 deletions
@@ -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()