odoo18/addons_extensions/hr_recruitment_extended/views/requisitions.xml

29 lines
1.8 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record id="view_requisition_form_inherit" model="ir.ui.view">
<field name="name">requisition.form.inherit</field>
<field name="model">recruitment.requisition</field>
<field name="inherit_id" ref="requisitions.view_requisition_form"/>
<field name="arch" type="xml">
<!-- <field name="job_id" invisible="job_id == False" readonly="1" force_save="1"/>-->
<xpath expr="//field[@name='job_id']" position="attributes">
<attribute name="invisible">0</attribute>
<attribute name="readonly">state not in ['draft']</attribute>
<attribute name="required">1</attribute>
</xpath>
<xpath expr="//field[@name='job_id']" position="after">
<field name="job_category" required="1" readonly="state not in ['draft']"/>
<field name="hr_job_recruitment" string="Job Recruitment ID" readonly="not is_hr or state == 'jd_created'" force_save="1" invisible="state not in ['final','jd_created']" options="{'no_quick_create': True, 'no_create_edit': True, 'no_open': True}"/>
<field name="recruitment_status" widget="statusbar" readonly="1" force_save="1" invisible="not hr_job_recruitment" options="{'clickable': '1', 'fold_field': 'fold'}"/>
</xpath>
<xpath expr="//field[@name='requested_on']" position="after">
<field name="job_priority" readonly="state in ['jd_created']"/>
</xpath>
<xpath expr="//field[@name='secondary_skill_ids']" position="after">
<field name="experience" readonly="state in ['jd_created']"/>
</xpath>
</field>
</record>
</data>
</odoo>