mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add groupby
This commit is contained in:
@@ -109,6 +109,8 @@ msgstr "主产品编码"
|
||||
#. module: app_product_type_sequence
|
||||
#: model:ir.model.fields,field_description:app_product_type_sequence.field_product_product_internal_type
|
||||
#: model:ir.model.fields,field_description:app_product_type_sequence.field_product_template_internal_type
|
||||
#: model:ir.ui.view,arch_db:app_product_type_sequence.app_product_search_form_view
|
||||
#: model:ir.ui.view,arch_db:app_product_type_sequence.app_product_template_search_view
|
||||
msgid "Internal Type"
|
||||
msgstr "内部类型"
|
||||
|
||||
|
||||
@@ -12,5 +12,18 @@
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<!-- search,继承product原视图 -->
|
||||
<record id="app_product_search_form_view" model="ir.ui.view">
|
||||
<field name="name">app.product.product.search</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit_id" ref="product.product_search_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='product_tmpl_id']" position="after">
|
||||
<group expand="0" name="group_by" string="Group By">
|
||||
<filter name="internal_type" string="Internal Type" domain="[]" context="{'group_by' : 'internal_type'}"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
@@ -28,6 +28,19 @@
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<!-- search,继承product原视图 -->
|
||||
<record id="app_product_template_search_view" model="ir.ui.view">
|
||||
<field name="name">app.product.template.search</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_search_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='pricelist_id']" position="after">
|
||||
<group expand="0" name="group_by" string="Group By">
|
||||
<filter name="internal_type" string="Internal Type" domain="[]" context="{'group_by' : 'internal_type'}"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<!--改产品默认视图为tree-->
|
||||
<record id="product.product_template_action" model="ir.actions.act_window">
|
||||
<field name="name">Products</field>
|
||||
|
||||
Reference in New Issue
Block a user