This commit is contained in:
michel 2017-11-20 16:26:21 +01:00
parent ccb82a0c72
commit aa0d4d36d0

View File

@ -19,10 +19,11 @@ class Coworker(models.Model):
coworker1_relation_ids = fields.One2many(
string="Relation",
comodel_name="coworking.relation",
inverse_name="coworker1"
inverse_name="coworker1",
domain="[('coworker2', '=', True)]"
)
coworker2_relation_ids = fields.One2many(
string="Relation",
string="Relation with you",
comodel_name="coworking.relation",
inverse_name="coworker2"
)