diff --git a/coworking_relation/models/coworker.py b/coworking_relation/models/coworker.py index d6f7217..177b744 100644 --- a/coworking_relation/models/coworker.py +++ b/coworking_relation/models/coworker.py @@ -17,6 +17,11 @@ class Coworker(models.Model): #Relation fields relation_ids = fields.One2many( 'coworking.relation', 'relation') + relation_ids = fields.One2many( + string="Relation", + comodel_name="coworking.relation", + inverse_name="relation", + ) @api.depends('event_ids') def _compute_events_coworker_count(self):