[FIX] account: use parameter move_type instead type(python keyword)
complementary to https://github.com/odoo/odoo/commit/523cfc447bada2617d0e2cce61806aa188bc59b8 closes odoo/odoo#101067 X-original-commit: 8746e0e018d42b50901c3b3db2af3e3728bad840 Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
committed by
Carlos Lopez
parent
322a2135c6
commit
342a0c800a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user