Many2many
This commit is contained in:
parent
d303d69b96
commit
539cedf663
@ -22,6 +22,8 @@ class Event(models.Model):
|
|||||||
('confirmed', 'Confirmed'),
|
('confirmed', 'Confirmed'),
|
||||||
('canceled', 'Canceled')], default='draft')
|
('canceled', 'Canceled')], default='draft')
|
||||||
|
|
||||||
|
participants_ids = fields.Many2many('coworking.coworker.name', string='Name')
|
||||||
|
|
||||||
|
|
||||||
@api.constrains('date_end')
|
@api.constrains('date_end')
|
||||||
def _check_date_end(self):
|
def _check_date_end(self):
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<field name="duration" />
|
<field name="duration" />
|
||||||
<field name="description" />
|
<field name="description" />
|
||||||
<field name="statut" />
|
<field name="statut" />
|
||||||
|
<fiels name="participant_ids" />
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
</sheet>
|
</sheet>
|
||||||
|
Loading…
Reference in New Issue
Block a user