增加更新脚本
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
decoration-danger="approve_state == 'end'"
|
||||
create="false" default_order="write_date2 desc" expand="1">
|
||||
<header>
|
||||
<button name="admin_end" type="object" string="管理员强制结束" dclass="oe_highlight"/>
|
||||
<button name="admin_end" type="object" string="管理员强制结束" class="oe_highlight"/>
|
||||
</header>
|
||||
<field name="code"/>
|
||||
<field name="name"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="view_employee_inherit_del_form" model="ir.ui.view">
|
||||
<field name="name">hr.employee.inherit.del.form</field>
|
||||
<field name="name">hr.employee.inherit.del.form.inherit</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="inherit_id" ref="hr.view_employee_form"/>
|
||||
<field name="arch" type="xml">
|
||||
@@ -443,7 +443,7 @@
|
||||
<field name="name">hr.employee.inherit.del.form</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="通讯录" crate="false" delete="false" editable="bottom">
|
||||
<tree string="通讯录" create="false" delete="false" editable="bottom">
|
||||
<field name="name" readonly="1"/>
|
||||
<field name="mobile_phone" readonly="1"/>
|
||||
<field name="work_phone" readonly="1"/>
|
||||
@@ -458,7 +458,7 @@
|
||||
<field name="name">hr.employee.member</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="会员列表" crate="false" delete="false" editable="bottom">
|
||||
<tree string="会员列表" create="false" delete="false" editable="bottom">
|
||||
<field name="name" readonly="1"/>
|
||||
<field name="work_phone" readonly="1"/>
|
||||
<field name="department_id" readonly="1" options='{"no_open": True, "no_create": True}'/>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
'category': 'Human Resources/Attendances',
|
||||
'version': '0.1',
|
||||
'license': 'LGPL-3',
|
||||
'depends': ['documents', 'maintenance', 'hr', 'base', 'soong_workflow'],
|
||||
'depends': ['documents', 'maintenance', 'hr', 'base', 'soong_workflow','hr_maintenance'],
|
||||
'data': [
|
||||
'security/ir.model.access.csv',
|
||||
'data/yuthon_maintain_code_data.xml',
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
<field name="company" string="公司" widget="radio" invisible="not is_jtbb"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='department_id']" position="after">
|
||||
<field name="department_id1" options="{'no_create': True}" invisible="equipment_assign_to != 'employee'"/>
|
||||
<field name="department_id1" options="{'no_create': True}"
|
||||
invisible="equipment_assign_to != 'employee'"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='technician_user_id']" position="attributes">
|
||||
<attribute name="string">管理员</attribute>
|
||||
@@ -24,13 +25,13 @@
|
||||
<field name="equipment_unit"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='model']" position="attributes">
|
||||
<attribute name="string">型号</attribute>
|
||||
<attribute name="string">型号</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='cost']" position="attributes">
|
||||
<attribute name="string">原值</attribute>
|
||||
<attribute name="string">原值</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='warranty_date']" position="attributes">
|
||||
<attribute name="string">寿命</attribute>
|
||||
<attribute name="string">寿命</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='maintenance']" position="after">
|
||||
<page string="关联流程">
|
||||
@@ -79,39 +80,54 @@
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_maintenance_equipment_inherit_tree" model="ir.ui.view">
|
||||
<field name="name">maintenance.equipment.tree.inherit</field>
|
||||
<field name="model">maintenance.equipment</field>
|
||||
<field name="inherit_id" ref="maintenance.hr_equipment_view_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//tree/field[@name='name']" position="after">
|
||||
<field name="mainten_state"/>
|
||||
<field name="model" sting="型号"/>
|
||||
<field name="equipment_number"/>
|
||||
<field name="equipment_unit"/>
|
||||
<field name="cost" string="原值"/>
|
||||
<field name="warranty_date" string="寿命"/>
|
||||
</xpath>
|
||||
<xpath expr="//tree/field[@name='employee_id']" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//tree/field[@name='technician_user_id']" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//tree/field[@name='technician_user_id']" position="after">
|
||||
<field name="employee_id" string="员工"/>
|
||||
<field name="department_id1"/>
|
||||
</xpath>
|
||||
<xpath expr="//tree/field[@name='department_id']" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//tree/field[@name='assign_date']" position="attributes">
|
||||
<attribute name="string">购入日期</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//tree/field[@name='serial_no']" position="attributes">
|
||||
<attribute name="string">资产编号</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
<field name="name">maintenance.equipment.tree.inherit</field>
|
||||
<field name="model">maintenance.equipment</field>
|
||||
<field name="inherit_id" ref="maintenance.hr_equipment_view_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<xpath expr="//field[@name='name']" position="after">
|
||||
<field name="mainten_state"/>
|
||||
<field name="model" string="型号"/>
|
||||
<field name="equipment_number"/>
|
||||
<field name="equipment_unit"/>
|
||||
<field name="cost" string="原值"/>
|
||||
<field name="warranty_date" string="寿命"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='assign_date']" position="attributes">
|
||||
<attribute name="string">购入日期</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='serial_no']" position="attributes">
|
||||
<attribute name="string">资产编号</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="maintenance_equipment_view_tree_inherit_hr" model="ir.ui.view">
|
||||
<field name="name">maintenance.equipment.view.tree.inherit.hr</field>
|
||||
<field name="model">maintenance.equipment</field>
|
||||
<field name="inherit_id" ref="hr_maintenance.maintenance_equipment_view_tree_inherit_hr"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='employee_id']" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='department_id']" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='technician_user_id']" position="after">
|
||||
<field name="employee_id" string="员工"/>
|
||||
<field name="department_id1"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='technician_user_id']" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="maintain_equipment_kanban_inherit_hr" model="ir.ui.view">
|
||||
<field name="name">maintain.equipment.kanban.inherit.hr</field>
|
||||
<field name="model">maintenance.equipment</field>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<page name="对账明细">
|
||||
<field name="reconciliation_line_ids">
|
||||
<tree editable="bottom" create="false" delete="false" default_order="sequence desc">
|
||||
<field name="sequence" column_invisible="1" />
|
||||
<field name="reconciliation_id" column_invisible="1"/>
|
||||
<field name="property_id" readonly="1" force_save="1"/>
|
||||
<field name="contract_id" readonly="1" force_save="1"/>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<field name="name">yuthon.salary.project.tree</field>
|
||||
<field name="model">yuthon.salary.project</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="项目配置" edtitable="bottom">
|
||||
<tree string="项目配置" editable="bottom">
|
||||
<field name="sequence"/>
|
||||
<field name="name"/>
|
||||
<field name="decision_type_id"/>
|
||||
|
||||
Reference in New Issue
Block a user