odex30_standard/hr_job_request/views/hr_base_view.xml

52 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="hr_job_view_form_inherit2" model="ir.ui.view">
<field name="name">hr.job.form.inherit</field>
<field name="model">hr.job</field>
<field name="inherit_id" ref="hr.view_hr_job_form"/>
<field name="priority">100</field>
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button name="set_recruit" string="Launch Recruitment"
invisible="state == 'recruit'" type="object"
class="oe_highlight" groups="base.group_user"
confirm="Are you sure you want to open recruitment?"/>
<button name="set_open" string="Close Recruitment"
invisible="state == 'open'" type="object"
groups="base.group_user"
confirm="Are you sure you want to close recruitment?"/>
<field name="state" widget="statusbar" statusbar_visible="recruit,open"/>
</div>
<field name="no_of_recruitment" position="replace">
</field>
<xpath expr="//group[@name='recruitment']" position="after">
<group string="Statistics" name="statistics">
<field name="no_of_recruitment" readonly="state == 'open'"/>
<field name="no_of_employee"/>
<field name="expected_employees"/>
<field name="no_of_hired_employee" readonly="1"/>
</group>
</xpath>
<xpath expr="//notebook/page[2]" position="after">
<page string="Job Requests">
<field name="job_request_ids" readonly="1"/>
</page>
</xpath>
</field>
</record>
<record id="hr_job_view_tree_inherit2" model="ir.ui.view">
<field name="name">hr.job.list.inherit</field>
<field name="model">hr.job</field>
<field name="inherit_id" ref="hr.view_hr_job_tree"/>
<field name="priority">100</field>
<field name="arch" type="xml">
<field name="department_id" position="replace">
</field>
</field>
</record>
</data>
</odoo>