odex25_standard/odex25_hr/hr_termination/views/eos_patch.xml

68 lines
3.1 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">tree,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" states="draft"/>
<button class="oe_highlight" string="Re-Draft" type="object" name="set_to_draft" states="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 -->
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="activity_ids" widget="mail_activity"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</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">
<tree 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"/>
</tree>
</field>
</record>
</data>
</odoo>