diff --git a/coworking_coworker/models/res_partner.py b/coworking_coworker/models/res_partner.py index 868f351..81aedfb 100644 --- a/coworking_coworker/models/res_partner.py +++ b/coworking_coworker/models/res_partner.py @@ -10,10 +10,6 @@ class ResPartner(models.Model): _inherit = 'res.partner' is_coworker = fields.Boolean('Coworker', default=False) - coworker_count = fields.Integer('Number of coworker', - compute='_compute_coworker_count') - - company_ids = fields.One2many( string="Company", comodel_name="res.partner", @@ -31,12 +27,6 @@ class ResPartner(models.Model): full_contact_adress = fields.Char(compute='_compute_full_contact_adress') - @api.depends('is_coworker') - def _compute_coworker_count(self): - """ Computes number of coworker """ - for coworker in self: - coworker.coworker_count = len(coworker.coworker_type) - @api.depends('street', 'zip', 'city') def _compute_full_contact_adress(self): """Concatènation de l'adresse si les chanps street, czip et city sont renseignés""" diff --git a/coworking_coworker/views/res_partner_views.xml b/coworking_coworker/views/res_partner_views.xml index eb379ed..ac0b79c 100644 --- a/coworking_coworker/views/res_partner_views.xml +++ b/coworking_coworker/views/res_partner_views.xml @@ -30,7 +30,7 @@ - + @@ -44,8 +44,7 @@ - - + -