[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:
Leighton Pennicott
2020-11-04 14:35:29 -05:00
parent 59a770120e
commit 6e8463b63a
2 changed files with 6 additions and 5 deletions

View File

@@ -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, {