Files
app-odoo/app_product_superbar/views/product_views.xml
2018-12-14 02:41:35 +08:00

31 lines
1.4 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<odoo>
<data>
<!-- Product -->
<record id="product_template_search_view_superbar" model="ir.ui.view">
<field name="name">product.template.search.ztree</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
<xpath expr="//search">
<superbar position="right" view_mode="kanban,tree">
<field name="categ_id" domain="[]"
parent_key="parent_id" level="2"/>
<field name="type"/>
</superbar>
</xpath>
</field>
</record>
<!--产品list目录显示短名不生效停用。需要在action中传context才成-->
<!--<record id="app_product_template_tree_view" model="ir.ui.view">-->
<!--<field name="name">app.product.template.product.tree</field>-->
<!--<field name="model">product.template</field>-->
<!--<field name="inherit_id" ref="product.product_template_tree_view"/>-->
<!--<field name="arch" type="xml">-->
<!--<xpath expr="//field[@name='categ_id']" position="attributes">-->
<!--<attribute name="context">{'category_show_short': True}</attribute>-->
<!--</xpath>-->
<!--</field>-->
<!--</record>-->
</data>
</odoo>