odex30_standard/hr_termination/views/eos_patch.xml

64 lines
2.8 KiB
XML

<?xml version="1.0"?>
<odoo>
<data>
<record model="ir.actions.act_window" id="eos_patch_action">
<field name="name">EOS Patch</field>
<field name="res_model">hr.termination.patch</field>
<field name="view_mode">list,form</field>
</record>
<record id="eos_patch_form_view" model="ir.ui.view">
<field name="name">EOS Patch</field>
<field name="model">hr.termination.patch</field>
<field name="arch" type="xml">
<form>
<header>
<field name="state" widget="statusbar"/>
<button class="oe_highlight" name="generate_termination" type="object" string="Generate EOS" invisible="state != 'draft'"/>
<button class="oe_highlight" string="Re-Draft" type="object" name="set_to_draft" invisible="state != 'terminate'"
groups="hr.group_hr_user,hr.group_hr_manager"/>
</header>
<sheet>
<group>
<group>
<field name="name" string="Name" required="1"/>
<field name="last_work_date" string="Last Date Working" required="1"/>
</group>
<group>
<field name="date" string="Date" required="1"/>
<field name="cause_type" string="Cause Type" required="1"/>
<field name="calculation_method" string="Calculation method" required="1"
widget="many2many_tags"/>
</group>
</group>
<notebook>
<page string="Employees">
<field name="employee_ids"/>
</page>
</notebook>
</sheet>
<!--Discuss widgets for history and communication -->
<chatter/>
</form>
</field>
</record>
<record model="ir.ui.view" id="eos_patch_tree_view">
<field name="name">EOS Patch</field>
<field name="model">hr.termination.patch</field>
<field name="arch" type="xml">
<list string="EOS Patch">
<field name="name" string="Name" />
<field name="date" string="Date" />
<field name="cause_type" string="Cause Type" />
<field name="calculation_method" string="Calculation method" widget="many2many_tags"/>
<field name="state" string="State"/>
</list>
</field>
</record>
</data>
</odoo>