mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update superbar for 向导
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<xpath expr="//search">
|
<xpath expr="//search">
|
||||||
<superbar position="right" view_mode="kanban,tree">
|
<superbar position="right" view_mode="kanban,tree">
|
||||||
<field name="categ_id" domain="[]"
|
<field name="categ_id" domain="[]"
|
||||||
parent_key="parent_id" level="0"/>
|
parent_key="parent_id" level="2"/>
|
||||||
<field name="type"/>
|
<field name="type"/>
|
||||||
</superbar>
|
</superbar>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|||||||
@@ -1,34 +1,34 @@
|
|||||||
<odoo>
|
<odoo>
|
||||||
<data>
|
<data>
|
||||||
<!-- Product -->
|
<!-- Product -->
|
||||||
<record id="app_product_template_form_view" model="ir.ui.view">
|
<record id="app_product_template_form_view" model="ir.ui.view">
|
||||||
<field name="name">app.product.template.form</field>
|
<field name="name">app.product.template.form</field>
|
||||||
<field name="model">product.template</field>
|
<field name="model">product.template</field>
|
||||||
<field name="inherit_id" ref="product.product_template_form_view"/>
|
<field name="inherit_id" ref="product.product_template_form_view"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//field[@name='categ_id']" position="attributes">
|
<xpath expr="//field[@name='categ_id']" position="attributes">
|
||||||
<!-- Add your fields or attributes here -->
|
<!-- Add your fields or attributes here -->
|
||||||
<attribute name="widget">ztree_select</attribute>
|
<attribute name="widget">ztree_select</attribute>
|
||||||
<attribute name="ztree_parent_key">parent_id</attribute>
|
<attribute name="ztree_parent_key">parent_id</attribute>
|
||||||
<attribute name="ztree_expend_level">2</attribute>
|
<attribute name="ztree_expend_level">2</attribute>
|
||||||
<attribute name="limit">16</attribute>
|
<attribute name="limit">16</attribute>
|
||||||
<attribute name="order">name</attribute>
|
<attribute name="order">name</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
<record id="app_product_category_form_view" model="ir.ui.view">
|
<record id="app_product_category_form_view" model="ir.ui.view">
|
||||||
<field name="name">app.product.category.form</field>
|
<field name="name">app.product.category.form</field>
|
||||||
<field name="model">product.category</field>
|
<field name="model">product.category</field>
|
||||||
<field name="inherit_id" ref="product.product_category_form_view"/>
|
<field name="inherit_id" ref="product.product_category_form_view"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
|
|
||||||
<xpath expr="//field[@name='parent_id']" position="attributes">
|
<xpath expr="//field[@name='parent_id']" position="attributes">
|
||||||
<!-- Add your fields or attributes here -->
|
<!-- Add your fields or attributes here -->
|
||||||
<attribute name="widget">ztree_select</attribute>
|
<attribute name="widget">ztree_select</attribute>
|
||||||
<attribute name="ztree_parent_key">parent_id</attribute>
|
<attribute name="ztree_parent_key">parent_id</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
</data>
|
</data>
|
||||||
</odoo>
|
</odoo>
|
||||||
Reference in New Issue
Block a user