You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
3.2 KiB
74 lines
3.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- gratuity_configuration views-->
|
|
<record id="gratuity_configuration_view_list" model="ir.ui.view">
|
|
<field name="name">gratuity.configuration.view.list</field>
|
|
<field name="model">gratuity.configuration</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Gratuity Duration">
|
|
<field name="name"/>
|
|
<field name="from_year"/>
|
|
<field name="to_year"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
<!--Form view of the model gratuity.configuration-->
|
|
<record id="gratuity_configuration_view_form" model="ir.ui.view">
|
|
<field name="name">gratuity.configuration.view.form</field>
|
|
<field name="model">gratuity.configuration</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Gratuity Duration">
|
|
<sheet>
|
|
<field name="active" invisible="1"/>
|
|
<field name="yr_from_flag" invisible="1"/>
|
|
<field name="yr_to_flag" invisible="1"/>
|
|
<widget name="web_ribbon" text="Archived"
|
|
bg_color="bg-danger"
|
|
invisible="active == True"/>
|
|
<div class="oe_title">
|
|
<label for="name" class="oe_edit_only"/>
|
|
<h1>
|
|
<field name="name"/>
|
|
</h1>
|
|
</div>
|
|
<group name="duration_details"
|
|
string="Duration Configuration">
|
|
<group>
|
|
<field name="from_year"
|
|
required="yr_from_flag == True"/>
|
|
</group>
|
|
<group>
|
|
<field name="to_year"
|
|
required="yr_to_flag == True"/>
|
|
</group>
|
|
</group>
|
|
<group string="Computations Details">
|
|
<group>
|
|
<field name="employee_working_days"/>
|
|
<field name="company_id"
|
|
groups="base.group_multi_company"/>
|
|
</group>
|
|
<group>
|
|
<field name="employee_daily_wage_days"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<div class="o_row o_row_readonly">
|
|
<span class="oe_inline">Employee is entitled
|
|
to
|
|
</span>
|
|
|
|
<field name="percentage" style="min-width: 2rem;"/>
|
|
<span class="oe_inline">of the</span>
|
|
<field name="employee_working_days"
|
|
style="min-width: 2rem;"/>
|
|
<span>-days gratuity pay.
|
|
</span>
|
|
</div>
|
|
</group>
|
|
</sheet>
|
|
<chatter/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|