From e8c15bf2bbc367e8cb83661cdc345484e3fe3578 Mon Sep 17 00:00:00 2001 From: "Touati Djamel (otd)" Date: Mon, 15 Nov 2021 14:21:06 +0000 Subject: [PATCH] [FIX] purchase_stock: delete a wrong field on setup class test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The field `invoice_policy` on the product model is defined in the module `sale`. So if you run the tests with only “purchase_stock” installed on the DB, an error will be thrown. Bug introduced by this commit: https://github.com/odoo/odoo/pull/75886/commits/72955411964440747125e7c9d00ef952bc69a80e#diff-f3237d6d25dc46b109ec461ad910dd4cf6f5c6572e29e1b7eedbd9cfa63cb5c2R22 opw-2685389 closes odoo/odoo#80006 X-original-commit: 6f86c979193dc5ba90ecdc614944c80b4906565e Signed-off-by: William Henrotin (whe) Signed-off-by: Djamel Touati (otd) --- .../purchase_stock/tests/test_purchase_stock_accrued_entries.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/purchase_stock/tests/test_purchase_stock_accrued_entries.py b/addons/purchase_stock/tests/test_purchase_stock_accrued_entries.py index 7c0de6f7e7d..1f184ea4e9a 100644 --- a/addons/purchase_stock/tests/test_purchase_stock_accrued_entries.py +++ b/addons/purchase_stock/tests/test_purchase_stock_accrued_entries.py @@ -19,7 +19,6 @@ class TestAccruedPurchaseStock(AccountTestInvoicingCommon): 'type': 'consu', 'uom_id': uom_unit.id, 'uom_po_id': uom_unit.id, - 'invoice_policy': 'delivery', }) cls.purchase_order = cls.env['purchase.order'].with_context(tracking_disable=True).create({