Hi,
how can I create a new group in form tree ?
in a form tree, I have "filters", "group" and "favorites", how can I add a custom group ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
how can I create a new group in form tree ?
in a form tree, I have "filters", "group" and "favorites", how can I add a custom group ?
Hi,
check the below code it will give you an idea how to group
<record id="view_student_search" model="ir.ui.view">
<field name="name">student.student.search</field>
<field name="model">student.student</field>
<field name="priority" eval="8" />
<field name="arch" type="xml">
<search string="Student">
<field name="name" />
<field name="blood_group" />
<newline />
<group expand="0" string="Group By...">
<filter name="blood_group" string="Blood Group"
domain="[]" context="{'group_by':'blood_group'}" />
<filter name="course_id" string="Course"
domain="[]" context="{'group_by':'course_id'}" />
</group>
</search>
</field>
</record>
This is sample code that shows how the group by works. |
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
mar 15
|
10165 | ||
|
0
maj 15
|
3695 | ||
|
3
lip 24
|
25225 | ||
how to add new fields for search in SO/RFQ?
Rozwiązane
|
|
3
maj 24
|
4133 | |
|
1
gru 19
|
4781 |