|
@@ -0,0 +1,51 @@
|
|
|
+<?xml version="1.0"?>
|
|
|
+<openerp>
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <record model="ir.ui.view" id="hr_employee_form_view">
|
|
|
+ <field name="name">hr.employee.form.view</field>
|
|
|
+ <field name="model">hr.employee</field>
|
|
|
+ <field name="inherit_id" ref="hr.view_employee_form" />
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//form/sheet/notebook//page[@string='HR Settings']" position="attributes">
|
|
|
+ <attribute name="attrs">{'invisible':True}</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//form/sheet/notebook//group[@string='Contact Information']" position="attributes">
|
|
|
+ <attribute name="attrs">{'invisible':True}</attribute>
|
|
|
+ </xpath>
|
|
|
+ <field name="address_home_id" position="attributes">
|
|
|
+ <attribute name="attrs">{'required':True}</attribute>
|
|
|
+ </field>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record model="ir.ui.view" id="hr_contract_form_view">
|
|
|
+ <field name="name">hr.contract.form.view</field>
|
|
|
+ <field name="model">hr.contract</field>
|
|
|
+ <field name="inherit_id" ref="hr_contract.hr_contract_view_form" />
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//form/sheet/notebook//page[@string='Work Permit']" position="attributes">
|
|
|
+ <attribute name="attrs">{'invisible':True}</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <record model="ir.ui.view" id="hr_payslip_form_view">
|
|
|
+ <field name="name">hr.payslip.form.view</field>
|
|
|
+ <field name="model">hr.payslip</field>
|
|
|
+ <field name="inherit_id" ref="hr_payroll.view_hr_payslip_form" />
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <xpath expr="//form/sheet/notebook//page[@string='Details By Salary Rule Category']" position="attributes">
|
|
|
+ <attribute name="attrs">{'invisible':True}</attribute>
|
|
|
+ </xpath>
|
|
|
+ <xpath expr="//form/sheet/notebook//page[@string='Accounting Information']" position="attributes">
|
|
|
+ <attribute name="attrs">{'invisible':True}</attribute>
|
|
|
+ </xpath>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ </data>
|
|
|
+</openerp>
|