129 lines
6.3 KiB
XML
129 lines
6.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="inherit_hr_contract_yuthon_tree" model="ir.ui.view">
|
|
<field name="name">inherit.hr.contract.yuthon.tree</field>
|
|
<field name="model">hr.contract</field>
|
|
<field name="inherit_id" ref="hr_contract.hr_contract_view_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//tree" position="inside">
|
|
<header>
|
|
<button name="renew" string="续签" type="object" class="btn btn-primary"/>
|
|
<button name="pub_leaving_employee" string="离职" type="object" class="btn btn-primary"/>
|
|
</header>
|
|
</xpath>
|
|
<xpath expr="//field[@name='employee_id']" position="attributes">
|
|
<attribute name="widget">false</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='company_id']" position="attributes">
|
|
<attribute name="column_invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='resource_calendar_id']" position="attributes">
|
|
<attribute name="column_invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='date_end']" position="after">
|
|
<field name="date_of_entry"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='date_end']" position="before">
|
|
<field name="termination_date"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='employee_id']" position="after">
|
|
<field name="contract_type_id" string="用工形式"/>
|
|
<field name="is_company" string="是否本公司" optional="hide"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='date_end']" position="attributes">
|
|
<attribute name="string">结束日期</attribute>
|
|
<attribute name="readonly">0</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='name']" position="attributes">
|
|
<attribute name="column_invisible">1</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="inherit_hr_contract_yuthon_form" model="ir.ui.view">
|
|
<field name="name">inherit.hr.contract.yuthon.form</field>
|
|
<field name="model">hr.contract</field>
|
|
<field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='employee_id']" position="after">
|
|
<field name="code"/>
|
|
</xpath>
|
|
<xpath expr="//page[@name='other']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='employee_id']" position="attributes">
|
|
<attribute name="widget">false</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='contract_type_id']" position="after">
|
|
<field name="state"/>
|
|
<field name="termination_date"/>
|
|
<field name="reason_suspension" required="termination_date" invisible="not termination_date"/>
|
|
<field name="salary_day" invisible="not is_internship"/>
|
|
<field name="salary_group_id" options="{'no_create': True}"/>
|
|
<field name="is_internship" invisible="1"/>
|
|
<field name="is_probation"/>
|
|
<field name="is_annual_salary"/>
|
|
<field name="start_date" invisible="not is_probation"/>
|
|
<field name="end_date" invisible="not is_probation"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='resource_calendar_id']" position="attributes">
|
|
<attribute name="string">工作日历</attribute>
|
|
</xpath>
|
|
<xpath expr="//notebook" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//group[@name='top_info']" position="before">
|
|
<group string="甲方信息">
|
|
<field name="party_id"/>
|
|
<field name="representatives"/>
|
|
<field name="economy_type"/>
|
|
<field name="address"/>
|
|
</group>
|
|
<group col="2">
|
|
<group>
|
|
<field name="contact"/>
|
|
</group>
|
|
<group>
|
|
<field name="phone"/>
|
|
</group>
|
|
</group>
|
|
</xpath>
|
|
<xpath expr="//group[@name='top_info']" position="attributes">
|
|
<attribute name="string">乙方信息</attribute>
|
|
</xpath>
|
|
<xpath expr="//page[@name='information']" position="replace">
|
|
<page name="information2" string="工资信息">
|
|
<group>
|
|
<group>
|
|
<field name="wage_type"/>
|
|
<field name="schedule_pay"/>
|
|
<field name="wage" string="基本薪资" required="False"/>
|
|
</group>
|
|
<group/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<record id="view_hr_contract_search_inherit" model="ir.ui.view">
|
|
<field name="name">hr.contract.search.inherit</field>
|
|
<field name="model">hr.contract</field>
|
|
<field name="inherit_id" ref="hr_contract.hr_contract_view_search"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//filter[@name='running']" position="after">
|
|
<filter name="current_contract" string="当前合同" domain="[('current_contract', '=', True)]"/>
|
|
</xpath>
|
|
<xpath expr="//filter[@name='group_by_employee']" position="after">
|
|
<filter name="group_salary_group_id" string="工资单分组" context="{'group_by':'salary_group_id'}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<record id="all_data_write_user_contract" model="ir.actions.server">
|
|
<field name="name">批量导入合同</field>
|
|
<field name="model_id" ref="hr_contract.model_hr_contract"/>
|
|
<field name="binding_model_id" ref="hr_contract.model_hr_contract"/>
|
|
<field name="state">code</field>
|
|
<field name="code">action = model.action_hr_contract()</field>
|
|
</record>
|
|
</odoo>
|