release ztree

This commit is contained in:
ivan deng
2018-10-13 08:59:16 +08:00
parent ba0e7f2966
commit 312e28e995
60 changed files with 934 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<odoo>
<data>
<!-- hr -->
<record id="app_view_department_form" model="ir.ui.view">
<field name="name">app.hr.department.form</field>
<field name="model">hr.department</field>
<field name="inherit_id" ref="hr.view_department_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='parent_id']" position="attributes">
<!-- Add your fields or attributes here -->
<attribute name="widget">ztree_select</attribute>
<attribute name="ztree_parent_key">parent_id</attribute>
</xpath>
</field>
</record>
<record id="app_view_employee_form" model="ir.ui.view">
<field name="name">app.hr.employee.form</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='department_id']" position="attributes">
<!-- Add your fields or attributes here -->
<attribute name="widget">ztree_select</attribute>
<attribute name="ztree_parent_key">parent_id</attribute>
</xpath>
</field>
</record>
</data>
</odoo>