Skip to content
Snippets Groups Projects
Commit 451592fc authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[cgscop #21] ajout domaine ur_id sur contact

parent c0cf3e26
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ class CGScopCalendar(models.Model):
def _default_ur(self):
return self.env['res.company']._ur_default_get()
partner_ids = fields.Many2many(domain=[
('user_ids', '!=', False)])
type = fields.Selection([
('outside', 'Extérieur'),
('ur', 'UR'),
......
......@@ -66,7 +66,7 @@
<group name="event_info" col="1">
<group>
<field name="project_id" options="{'no_open': True, 'no_create': True}"/>
<field name="coop_id" options="{'no_open': True, 'no_create': True}"/>
<field name="coop_id" options="{'no_open': True, 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<field name="ur_id" invisible="1"/>
<field
name="partner_ids"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment