This commit is contained in:
michel 2017-11-16 16:38:21 +01:00
parent 704ac03ca9
commit e048a9e9f0

View File

@ -13,11 +13,11 @@ class CoworkerRelation(models.Model):
name = fields.Char()
coworker1 = fields.Many2one(
'coworking.coworker', 'Coworker', index=True, required=True,
'coworking.coworker', 'Coworker1', index=True, required=True,
domain="[('coworker_type', 'in', ['staffer', 'member', 'worker', 'volunteer', 'visitor'])]"
)
coworker2 = fields.Many2one(
'coworking.coworker', 'Coworker', index=True, required=True,
'coworking.coworker', 'Coworker2', index=True, required=True,
domain="[('coworker_type', 'in', ['staffer', 'member', 'worker', 'volunteer', 'visitor'])]"
)
relation = fields.Char(index=True, required=True)