From e5135b92d319637896ba24dc51f0a06b7670f1a5 Mon Sep 17 00:00:00 2001 From: Nicolas JEUDY Date: Wed, 4 Jan 2017 13:36:25 +0100 Subject: [PATCH] [FIX] new flake8 compute method name for OCA --- partner_contact_in_several_companies/models/res_partner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partner_contact_in_several_companies/models/res_partner.py b/partner_contact_in_several_companies/models/res_partner.py index 5c0ef5147..77ad64074 100644 --- a/partner_contact_in_several_companies/models/res_partner.py +++ b/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'