odex30_standard/hr_base/views/employee_iqama_renewal_view...

176 lines
9.2 KiB
XML

<?xml version="1.0" ?>
<odoo>
<data>
<record model="ir.actions.act_window" id="employee_iqama_renewal_list_action">
<field name="name">Request Identity Renewal</field>
<field name="res_model">employee.iqama.renewal</field>
<field name="view_mode">list,form</field>
</record>
<record id="employee_iqama_renewal_form_view" model="ir.ui.view">
<field name="name">company document</field>
<field name="model">employee.iqama.renewal</field>
<field name="arch" type="xml">
<form string="Employee identity renewal">
<header>
<button
name="submit"
string="Submit"
class="oe_highlight"
type="object"
invisible="state != 'draft'"
groups="hr_base.group_government_relations"
/>
<button
name="b_search"
string="Search"
class="oe_highlight"
type="object"
invisible="state != 'draft'"
groups="hr_base.group_government_relations"
/>
<button
name="hr_depart"
string="HR department Manager"
class="oe_highlight"
type="object"
invisible="state != 'submit'"
groups="hr.group_hr_manager"
/>
<button
name="refused"
string="Refused"
class="oe_highlight"
type="object"
invisible="state != 'submit'"
groups="hr.group_hr_manager"
/>
<button
name="effective_department"
string="Effective Approval"
class="oe_highlight"
type="object"
invisible="state != 'hr_depart'"
groups="hr_base.group_executive_manager"
/>
<button
name="refused"
string="Refused"
class="oe_highlight"
type="object"
invisible="state != 'hr_depart'"
groups="hr_base.group_account_manager"
/>
<button
name="chief_accountant"
string="Transfer To Finance"
class="oe_highlight"
type="object"
invisible="state != 'effective_department'"
groups="hr_base.group_account_manager"
/>
<button
name="refused"
string="Refused"
class="oe_highlight"
type="object"
invisible="state != 'effective_department'"
groups="hr_base.group_account_manager"
/>
<!--button name="general_manager" string="General manager approve" class="oe_highlight" type="object"
invisible="state != 'chief_accountant'"
groups="hr_base.group_general_manager"/>
<button name="refused" string="Refused" class="oe_highlight" type="object"
invisible="state != 'chief_accountant'"
groups="hr_base.group_general_manager"/-->
<!--button name="draft_state" string="Re-Draft" class="oe_highlight" type="object"
invisible="state != 'general_manager'"
groups="hr_base.group_general_manager"/-->
<button
name="draft_state"
string="Re-Draft"
class="oe_highlight"
type="object"
invisible="state != 'chief_accountant'"
groups="hr_base.group_account_manager"
confirm="Are you sure to Reset To Draft This Record?"
/>
<button
name="draft_state"
string="Re-Draft"
class="oe_highlight"
type="object"
confirm="Are you sure to Reset To Draft This Record?"
invisible="state != 'refused'"
groups="hr.group_hr_user,hr.group_hr_manager"
/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<group>
<field name="name" string="Ref"/>
<field name="x_description" string="Description" readonly="state != 'draft'"/>
<field name="date" string="Date" widget="date" required="True" readonly="state != 'draft'"/>
<field name="company_id" string="Company" required="True" readonly="state != 'draft'"/>
</group>
<field name="line_ids" string="Employees">
<list editable="bottom">
<field name="employee_id" string="Name" readonly="state != 'draft'"/>
<field name="iqama_no" string="Identity No" required="True"/>
<field name="iqama_expir_date" string="Identity expire date" required="True" widget="date"
force_save="1"/>
<field name="iqama_new_expiry" string="New Identity Expiry" required="1" widget="date"
readonly="state != 'draft'"/>
<field name="contract_date_end" string="Contract End Date" widget="date"
readonly="state != 'draft'"/>
<field name="account_id" string="Account Renewal"
readonly="state != 'effective_department'" required="state == 'effective_department'"/>
<field name="account_id2" string="Account Work"
readonly="state != 'effective_department'" required="state == 'effective_department'"/>
<field name="journal_id" string="Journal"
readonly="state != 'effective_department'" required="state == 'effective_department'"/>
<field name="work_premit_sedad_no" string="Work premit /Sedad No" required="True"
readonly="state != 'draft'"/>
<field name="renewal_fees" string="Renewal fees" required="True"
readonly="state != 'draft'"/>
<field name="work_premint_fees" string="work premint fees" required="True"
readonly="state != 'draft'"/>
<field name="total" string="Total Fees" required="True"/>
<field name="state" string="State"/>
</list>
</field>
</sheet>
<chatter/>
</form>
</field>
</record>
<record model="ir.ui.view" id="employee_iqama_renewal_tree_view">
<field name="name">company Document</field>
<field name="model">employee.iqama.renewal</field>
<field name="arch" type="xml">
<list
decoration-danger="state == 'refused'"
decoration-info="state == 'draft'"
string="employee identity renewal"
>
<field name="name" string="Ref"/>
<field name="x_description" string="Description"/>
<field name="line_ids" string="Employees"/>
<field name="company_id" string="Company"/>
<field name="date" string="Date" widget="date"/>
<field name="state" string="State"/>
</list>
</field>
</record>
</data>
</odoo>