odex30_standard/employee_requests/views/house_allowance_advance.xml

103 lines
5.8 KiB
XML

<?xml version="1.0"?>
<odoo>
<data>
<record model="ir.actions.act_window" id="employee_allowance_advance_list_action">
<field name="name">Employee allowance advance</field>
<field name="res_model">house.allowance.advance</field>
<field name="view_mode">list,form</field>
</record>
<record model="ir.ui.view" id="employee_house_allowance_advance_form_view">
<field name="name">Employee allowance advance</field>
<field name="model">house.allowance.advance</field>
<field name="arch" type="xml">
<form>
<header>
<button name="send" string="submit" class="oe_highlight" type="object"
invisible="state != 'draft'"/>
<button name="hr_special_Approval" string="HR Specialist Aproval" class="oe_highlight"
type="object"
invisible="state != 'send'"/>
<button name="refused" string="Refused" class="oe_highlight" type="object"
invisible="state != 'send'"/>
<button name="financial_manager" string="Fnicial Manager Approval" class="oe_highlight"
type="object"
invisible="state != 'hr_manager_approved'"/>
<button name="refused" string="Refused" class="oe_highlight" type="object"
invisible="state != 'hr_manager_approved'"/>
<button name="hr_manager_approved" string="HR Manager Approval" class="oe_highlight"
type="object"
invisible="state != 'hr_special_Approval'"/>
<button name="refused" string="Refused" class="oe_highlight" type="object"
invisible="state != 'hr_special_Approval'"/>
<button name="approve_manager" string="Approval Manager" class="oe_highlight" type="object"
invisible="state != 'financial_manager'"/>
<button name="refused" string="Refused" class="oe_highlight" type="object"
invisible="state != 'financial_manager'"/>
<button name="draft_state" string="RE-Draft" class="oe_highlight" type="object"
invisible="state != 'refused'"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<group>
<group>
<field name="from_hr_department" string="Another Employee"
readonly="state != 'draft'"/>
<field name="employee_id" string="Employee"
readonly="from_hr_department == False"/>
<field name="job_id" string="Job Name" readonly="1"/>
<field name="department_id" string="Department" readonly="1"/>
<field name="contract_id" string="Contract"
readonly="state != 'draft'"/>
</group>
<group>
<field name="amount" string="Amount"
required="1" readonly="state != 'draft'"/>
<field name="start_date" string="Start Date"/>
<field name="date" string="End Date"/>
<field name="duration" string="Duration"
required="1" readonly="state != 'draft'"/>
<button name="generate installment" string="Generate Installment" class="oe_highlight"/>
</group>
</group>
<notebook>
<page string="installments" name="installment">
<field name="house_allowance_advance_line_ids"
readonly="state != 'draft'">
<list editable="bottom">
<field name="amount_id" string="Amount"/>
<field name="date" string="Start Date"/>
</list>
</field>
</page>
<page string="Account Information" name="accounting_info">
<group></group>
<group>
<field name="account_move_id" string="Journal Entry"
readonly="state != 'draft'"/>
</group>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="employee_house_allowance_advance_tree_view">
<field name="name">Employee allowance advance</field>
<field name="model">house.allowance.advance</field>
<field name="arch" type="xml">
<list>
<field name="employee_id" string="Employee"/>
<field name="department_id" string="Department" required="True"/>
<field name="job_id" string="Job Name" required="True"/>
<field name="contract_id" string="Contract" required="True"/>
</list>
</field>
</record>
</data>
</odoo>