diff --git a/addons/purchase/tests/test_purchase.py b/addons/purchase/tests/test_purchase.py index c585a61e0c4..3ad1a904a5c 100644 --- a/addons/purchase/tests/test_purchase.py +++ b/addons/purchase/tests/test_purchase.py @@ -240,6 +240,8 @@ class TestPurchase(AccountTestInvoicingCommon): def test_with_different_uom(self): """ This test ensures that the unit price is correctly computed""" + # Required for `product_uom` to be visibile in the view + self.env.user.groups_id += self.env.ref('uom.group_uom') uom_units = self.env.ref('uom.product_uom_unit') uom_dozens = self.env.ref('uom.product_uom_dozen') uom_pairs = self.env['uom.uom'].create({