تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
6166 أدوات العرض
Hello, I have a query about the search view and the context with the action view

I want it to be expanded and not summarized, for example:



I have this field in my search view



< filter name="groupby_partner" string="Moneda de Origen" context="{'group_by':'partner_id'}" / >



and when I declare by default that it is activated every time the view is triggered



< field name="context">{"search_default_":1,} < /field>



the normal thing for odoo is that it shows me the registers grouped and summarized

Is there a way to tell it by the search or action view that it should be expanded and not summarized?
الصورة الرمزية
إهمال
أفضل إجابة

Hello @Carlos Enrique

For default expanded features you have to add expand="1" into the tree tag. 

Example:


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

Thanks very much,
is exactly what i was looking for

أفضل إجابة

Hi,

Add expand="1" in the tree view.

See:  https://www.youtube.com/watch?v=tPYTnkGCoiA


Thanks

الصورة الرمزية
إهمال

Sample:
<tree string="Test" expand="1">
</tree>

الكاتب

Thanks very much,
is exactly what i was looking for

أفضل إجابة

How about if there are multiple groupby levels? The expand=1 option only expands the first group.

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

That's right, for now with the help of the answers the expand="1" only opens the first level, but I have found an OCA module that can facilitate that

What this module does is put two buttons in the expansion tree view, it expands each level when you click it and so you no longer go down using the mouse to open each of the search view groups.

the module is called "web_group_expand" it is available for several versions of odoo for free

المنشورات ذات الصلة الردود أدوات العرض النشاط
8
أبريل 23
36113
0
مارس 24
1347
0
يونيو 21
3695
0
نوفمبر 15
3835
1
سبتمبر 20
5732