From 3fd24bce233506219cee07635c461714fefa4062 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Date: Thu, 29 Apr 2021 01:56:38 +0200 Subject: [PATCH] [account_payment_purchase][fix] Only warn for non-blank payment mode or bank PO - Only issue a warning message if the PO had a non-blank payment mode or bank. --- .../tests/test_account_payment_purchase_stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_purchase_stock/tests/test_account_payment_purchase_stock.py b/account_payment_purchase_stock/tests/test_account_payment_purchase_stock.py index 210415a6c..b62cc8052 100644 --- a/account_payment_purchase_stock/tests/test_account_payment_purchase_stock.py +++ b/account_payment_purchase_stock/tests/test_account_payment_purchase_stock.py @@ -12,6 +12,7 @@ from odoo.addons.account_payment_purchase.tests.test_account_payment_purchase im class TestAccountPaymentPurchaseStock(TestAccountPaymentPurchase): def test_purchase_stock_order_invoicing(self): + self.purchase.onchange_partner_id() self.purchase.button_confirm() picking = self.purchase.picking_ids[0] picking.action_confirm() @@ -65,7 +66,6 @@ class TestAccountPaymentPurchaseStock(TestAccountPaymentPurchase): {"name": "Test stockable product", "type": "product"} ) self.purchase.order_line[0].product_id = stockable_product - self.purchase.payment_mode_id = False self.purchase.supplier_partner_bank_id = self.bank self.purchase.button_confirm() picking = self.purchase.picking_ids[0]