From f3e9c630de6cfc0fac6e98ef74c2f4fcb4c98bb3 Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 20 Nov 2017 15:21:38 +0100 Subject: [PATCH] relation_ids --- coworking_relation/models/coworker.py | 5 +++++ 1 file changed, 5 insertions(+) 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):