diff --git a/coworking_relation/models/coworker.py b/coworking_relation/models/coworker.py index 177b744..b8aa346 100644 --- a/coworking_relation/models/coworker.py +++ b/coworking_relation/models/coworker.py @@ -15,8 +15,7 @@ class Coworker(models.Model): events_coworker_count = fields.Integer('Number of event have participe', compute='_compute_events_coworker_count') #Relation fields - relation_ids = fields.One2many( - 'coworking.relation', 'relation') +) relation_ids = fields.One2many( string="Relation", comodel_name="coworking.relation",