From c6728cd64452588ca31fa3029f7cf66d8497bed3 Mon Sep 17 00:00:00 2001 From: "German Loredo [Vauxoo]" Date: Tue, 4 Jun 2024 04:48:50 +0000 Subject: [PATCH] [FIX] product_supplierinfo_for_customer_sale: fix tests In [1] the test where changed and try to set a field restricted to a group that the user used in the test don't have. [1]: OCA/sale-workflow/#3163 --- .../tests/test_product_supplierinfo_for_customer_sale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/product_supplierinfo_for_customer_sale/tests/test_product_supplierinfo_for_customer_sale.py b/product_supplierinfo_for_customer_sale/tests/test_product_supplierinfo_for_customer_sale.py index 19fbc24ee7a2..711c34ae2a44 100644 --- a/product_supplierinfo_for_customer_sale/tests/test_product_supplierinfo_for_customer_sale.py +++ b/product_supplierinfo_for_customer_sale/tests/test_product_supplierinfo_for_customer_sale.py @@ -41,6 +41,7 @@ def setUp(self): self.pricelist_template = self._create_pricelist( "Test Pricelist Template", self.product_template.product_variant_ids[:1] ) + self.env.user.groups_id |= self.env.ref("product.group_product_pricelist") def _create_customer(self, name): return self.env["res.partner"].create(