From d49b5d776f0387565c932ccfa81c006a44f59df3 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 15 Oct 2019 18:31:20 +0200 Subject: [PATCH] [MIG] contract: Missing renaming of invoice link Done through `oldname`. --- contract/models/account_invoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contract/models/account_invoice.py b/contract/models/account_invoice.py index f76080206..3510c3542 100644 --- a/contract/models/account_invoice.py +++ b/contract/models/account_invoice.py @@ -8,4 +8,5 @@ class AccountInvoice(models.Model): _inherit = 'account.invoice' # We keep this field for migration purpose - old_contract_id = fields.Many2one('contract.contract') + old_contract_id = fields.Many2one( + 'contract.contract', oldname='contract_id')