Tree view header inside add dropdown in odoo 8 using js and python

Tree header title inside add dropdown in odoo 8 using js and python


I am using odoo-8. My question is how to add a drop down menu above a side to the tree view in odoo8 using JS and python.

And I want to dynamically show the entire product category in this dropdown menu.

And when I click on a specific category, so that the tree view inside sorts certain types of clickable types.

i.e

Suppose you select a category from the drop-down menu Mobile, so only Mobileproduct types are displayed in the tree .

As I give an example in the bottom image, enter image description here

.
. - , .

+4
1

t-extend template.xml.

ControlPanel - , .

template.xml.

<t t-name="your_template_name" t-extend="ControlPanel">
    <t t-jquery=".o_cp_right" t-operation="after">
        <-- Add your Drop down list here -->
    </t>
</t>

o_cp_right - , . t-operation , , , .

0

Source: https://habr.com/ru/post/1679691/


All Articles