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

[update] contact associé au code activité = personnes morales et appartenant à l'UR

parent 90d7ac5a
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@
</div>
<group>
<group>
<field name="partner_id" string="Contact par défaut" help="Contact par défaut auquel est rattaché cette activité. Ce contact sera sélectionné automatiquement dans les feuilles de temps" options="{'no_open': True, 'no_create': True}"/>
<field name="partner_id" string="Contact par défaut" domain="[('is_company', '=', True), ('ur_id', '=', ur_id)]" help="Contact par défaut auquel est rattaché cette activité. Ce contact sera sélectionné automatiquement dans les feuilles de temps" options="{'no_open': True, 'no_create': True}"/>
<field name="ur_id" string="Union Régionale" options="{'no_open': True, 'no_create': True}" required="1" />
<field name="company_id" groups="base.group_multi_company" options="{'no_open': True, 'no_create': True}" string="Société" invisible="1" />
</group>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment