relation_ids
This commit is contained in:
parent
c2f395a2e6
commit
f3e9c630de
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user