[FIX] purchase: fix test_supplier_list_in_product_with_multicompany

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) <whe@odoo.com>
This commit is contained in:
Touati Djamel (otd)
2023-04-17 09:28:06 +02:00
parent d289a59ab5
commit e3da10baf1
-1
View File
@@ -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({