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