From 5cb18d286e6dfc36677528fb7b66c6c6e5f31245 Mon Sep 17 00:00:00 2001 From: Julien Van Roy Date: Tue, 2 Aug 2022 11:10:44 +0000 Subject: [PATCH] [FIX] delivery: avoid invisible product_uom_id Since commit 5ccc32fcf72cbfb6bb077d99a7657416c502aac1, it's no longer possible to write on invisible fields. Make sure the field product_uom_id is visible to avoid a traceback. closes odoo/odoo#97313 Signed-off-by: Josse Colpaert --- addons/delivery/tests/test_delivery_cost.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/delivery/tests/test_delivery_cost.py b/addons/delivery/tests/test_delivery_cost.py index 9ba6e2452aa..d82bc277b7d 100644 --- a/addons/delivery/tests/test_delivery_cost.py +++ b/addons/delivery/tests/test_delivery_cost.py @@ -49,6 +49,7 @@ class TestDeliveryCost(common.TransactionCase): "UPDATE res_company SET currency_id = %s WHERE id = %s", [self.env.ref('base.USD').id, self.env.company.id]) self.pricelist.currency_id = self.env.ref('base.USD').id + self.env.user.groups_id |= self.env.ref('uom.group_uom') def test_00_delivery_cost(self): # In order to test Carrier Cost