From e3da10baf1b914a150600ec8a0e61625f291fcdf Mon Sep 17 00:00:00 2001 From: "Touati Djamel (otd)" Date: Fri, 14 Apr 2023 11:26:39 +0000 Subject: [PATCH] [FIX] purchase: fix test_supplier_list_in_product_with_multicompany MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Install only the “purchase” module and run the test, it’ll always fail since the product type is added in the stock module Bug introduced in: https://github.com/odoo/odoo/pull/117956 Solution: Use the consumable type instead closes odoo/odoo#118672 X-original-commit: e155d91a906fabff02c0d34af51f874daebef909 Signed-off-by: William Henrotin (whe) --- addons/purchase/tests/test_purchase.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/purchase/tests/test_purchase.py b/addons/purchase/tests/test_purchase.py index 966f75366b1..1977e2423bf 100644 --- a/addons/purchase/tests/test_purchase.py +++ b/addons/purchase/tests/test_purchase.py @@ -381,7 +381,6 @@ class TestPurchase(AccountTestInvoicingCommon): company_b = self.company_data_2['company'] product = self.env['product.product'].create({ 'name': 'product_test', - 'type': 'product', }) # create a purchase order in the company A self.env['purchase.order'].with_company(company_a).create({