Skip to content
Snippets Groups Projects
Commit d9ce55bf authored by Carlos Lopez's avatar Carlos Lopez Committed by Carlos Lopez
Browse files

[FIX] account: use parameter move_type instead type(python keyword)

complementary to https://github.com/odoo/odoo/commit/523cfc447bada2617d0e2cce61806aa188bc59b8



closes odoo/odoo#101062

X-original-commit: 8746e0e0
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 909b9b46
Branches
Tags
No related merge requests found
......@@ -661,7 +661,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment