Browse Source

[FIX] new flake8 compute method name for OCA

pull/347/head
Nicolas JEUDY 8 years ago
parent
commit
e5135b92d3
  1. 4
      partner_contact_in_several_companies/models/res_partner.py

4
partner_contact_in_several_companies/models/res_partner.py

@ -12,7 +12,7 @@ class ResPartner(models.Model):
[('standalone', _('Standalone Contact')),
('attached', _('Attached to existing Contact')),
],
compute='_get_contact_type',
compute='_compute_contact_type',
store=True,
required=True,
index=True,
@ -27,7 +27,7 @@ class ResPartner(models.Model):
@api.multi
@api.depends('contact_id')
def _get_contact_type(self):
def _compute_contact_type(self):
for rec in self:
rec.contact_type = 'attached' if rec.contact_id else 'standalone'

Loading…
Cancel
Save