Skip to content
Snippets Groups Projects
Commit c39d40f9 authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

[FIX] hr_recruitment: job stages choosen manually

In 9.0, stages of a job position in recruitment are not share by
default, there is a "New" stage and existing stages can be added in the
form view (since 780f46ae).

When creating a job position, the "New" is not working with the given
widget type.

This commit doesn't show stages in the form view until the record is
created.

opw-1839217
closes #24706
parent 04508683
No related branches found
No related tags found
No related merge requests found
......@@ -408,7 +408,9 @@
<field name="address_id" context="{'show_address': 1}" domain= "[('is_company', '=', True )]" options="{'always_reload': True}"/>
</group>
<group colspan="2">
<field name="stage_ids" widget="many2many_tags" options="{'no_create': True}" />
<!-- ONLY FOR 9.0 -->
<field name="id" invisible="1"/>
<field name="stage_ids" widget="many2many_tags" options="{'no_create': True}" attrs="{'invisible': [('id', '=', False)]}"/>
</group>
</group>
<xpath expr="//field[@name='department_id']" position="after">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment