relation_ids

This commit is contained in:
michel 2017-11-20 15:21:38 +01:00
parent c2f395a2e6
commit f3e9c630de

View File

@ -17,6 +17,11 @@ class Coworker(models.Model):
#Relation fields #Relation fields
relation_ids = fields.One2many( relation_ids = fields.One2many(
'coworking.relation', 'relation') 'coworking.relation', 'relation')
relation_ids = fields.One2many(
string="Relation",
comodel_name="coworking.relation",
inverse_name="relation",
)
@api.depends('event_ids') @api.depends('event_ids')
def _compute_events_coworker_count(self): def _compute_events_coworker_count(self):