[FIX] contract: Proper o2m field definition

It should be inverse_name, not inverse.
This commit is contained in:
Pedro M. Baeza
2020-07-15 17:56:07 +02:00
parent 5c4f40ebd0
commit 3fd703b88b
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
{
'name': 'Recurring - Contracts Management',
'version': '12.0.7.2.5',
'version': '12.0.7.2.6',
'category': 'Contract Management',
'license': 'AGPL-3',
'author': "OpenERP SA, "

View File

@@ -17,7 +17,7 @@ class ResPartner(models.Model):
)
contract_ids = fields.One2many(
comodel_name='contract.contract',
inverse='partner_id',
inverse_name='partner_id',
string="Contracts",
)