diff --git a/addons/account/tests/test_account_move_in_invoice.py b/addons/account/tests/test_account_move_in_invoice.py index cf6ecd566bb..59bf4f96847 100644 --- a/addons/account/tests/test_account_move_in_invoice.py +++ b/addons/account/tests/test_account_move_in_invoice.py @@ -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() diff --git a/addons/account/tests/test_account_move_out_invoice.py b/addons/account/tests/test_account_move_out_invoice.py index 07494c7bc9e..8421167eb1b 100644 --- a/addons/account/tests/test_account_move_out_invoice.py +++ b/addons/account/tests/test_account_move_out_invoice.py @@ -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()