mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] account_invoice_margin: migrate and update
Updated field 'type' to 'move_type' in test test_invoice_margin. Updated methods product_id_change_margin and create override so they pass tests in odoo 14.0. H4396
This commit is contained in:
@@ -47,7 +47,7 @@ class TestInvoiceMargin(TestSaleMargin):
|
||||
|
||||
account = self.env['account.account'].search([('internal_type', '=', 'other')], limit=1)
|
||||
inv = self.AccountMove.create({
|
||||
'type': 'in_invoice',
|
||||
'move_type': 'in_invoice',
|
||||
'partner_id': self.partner_id,
|
||||
'invoice_line_ids': [
|
||||
(0, 0, {
|
||||
|
||||
Reference in New Issue
Block a user