mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
Add commercial_partner_id fields into contract module
Remove string attribute
This commit is contained in:
@@ -84,6 +84,14 @@ class ContractContract(models.Model):
|
||||
required=True
|
||||
)
|
||||
|
||||
commercial_partner_id = fields.Many2one(
|
||||
'res.partner',
|
||||
related='partner_id.commercial_partner_id',
|
||||
store=True,
|
||||
string='Commercial Entity',
|
||||
index=True
|
||||
)
|
||||
|
||||
@api.multi
|
||||
def _inverse_partner_id(self):
|
||||
for rec in self:
|
||||
|
||||
Reference in New Issue
Block a user