تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
8688 أدوات العرض

Hello, I have Odoo 8.

In the tree view of Warehouse -> All the operations -> Delivery orders, when I click on the search button I see the option to group by several criterias: state, order date, etc.

I want to add a new field to group by, how can I do this? (question 1) Also I try to add a field to search on, but not works (the search criteria not appears). My code is:

<record model="ir.ui.view" id="stock_picking_filter_search">
            <field name="name">stock.picking.tree.filter_search</field>
            <field name="model">stock.picking</field>
            <field name="arch" type="xml">
                <search>
                    <field name="metodo_de_entrega" string="Método de entrega" />
                </search>
            </field>
        </record>

What is my mistake? (question 2) Thanks!

الصورة الرمزية
إهمال
أفضل إجابة

Hi Jose ,

You missed this in your code.

<search>

<filter string="Método de entrega" domain="[]" context="{'group_by':'metodo_de_entrega'}"/>

</search>

By using filter tag only you can adda  filter to the search.i hope it will works

الصورة الرمزية
إهمال
الكاتب

I try this, but not works. The filter not appears. How can I check that the search filter is appling in the tree view? I think that this is the problem...

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 15
5352
4
يونيو 15
5263
1
يوليو 25
465
Search a message تم الحل
1
فبراير 25
1234
0
سبتمبر 23
2177