relation_ids

This commit is contained in:
michel 2017-11-20 15:21:38 +01:00
parent c2f395a2e6
commit f3e9c630de
1 changed files with 5 additions and 0 deletions

View File

@ -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):