Files
gzth/yuthon_contract/views/inherit_hr_contract_views.xml
T
2025-07-03 22:13:08 +08:00

95 lines
4.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="//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>
</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='contract_type_id']" position="after">
<field name="termination_date"/>
<field name="is_probation"/>
<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="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="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>