From 342a0c800a24f513c5ce7d0a0c7c102b62f70710 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Sun, 25 Sep 2022 14:07:25 +0000 Subject: [PATCH] [FIX] account: use parameter move_type instead type(python keyword) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit complementary to https://github.com/odoo/odoo/commit/523cfc447bada2617d0e2cce61806aa188bc59b8 closes odoo/odoo#101067 X-original-commit: 8746e0e018d42b50901c3b3db2af3e3728bad840 Signed-off-by: William André (wan) --- addons/account/tests/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/tests/common.py b/addons/account/tests/common.py index 1ecdda9f6db..c32f06e9dd4 100644 --- a/addons/account/tests/common.py +++ b/addons/account/tests/common.py @@ -686,7 +686,7 @@ class TestAccountReconciliationCommon(AccountTestInvoicingCommon): if currency_id: invoice_vals['currency_id'] = currency_id - invoice = self.env['account.move'].with_context(default_move_type=type).create(invoice_vals) + invoice = self.env['account.move'].with_context(default_move_type=move_type).create(invoice_vals) if auto_validate: invoice.action_post() return invoice