/
This commit is contained in:
parent
aa0d4d36d0
commit
679fc4ce4f
@ -19,14 +19,14 @@ class Coworker(models.Model):
|
||||
coworker1_relation_ids = fields.One2many(
|
||||
string="Relation",
|
||||
comodel_name="coworking.relation",
|
||||
inverse_name="coworker1",
|
||||
domain="[('coworker2', '=', True)]"
|
||||
inverse_name="coworker1"
|
||||
)
|
||||
coworker2_relation_ids = fields.One2many(
|
||||
string="Relation with you",
|
||||
comodel_name="coworking.relation",
|
||||
inverse_name="coworker2"
|
||||
)
|
||||
|
||||
@api.depends('event_ids')
|
||||
def _compute_events_coworker_count(self):
|
||||
""" Computes number of event coworker """
|
||||
|
Loading…
x
Reference in New Issue
Block a user