XML – Town Terminal Internal Use JS and Python Add Odoo 8 drop-down menu

Use js and python inside the tree view title to add the drop-down menu in odoo 8

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

I want to dynamically display all categories of products in this drop-down menu.

When I click on a specific category, the tree Sort products of a specific clickable type within the view.

That is

Suppose click on the Mobile category from drop -down menu so tree view inside show only Mobile types of products.

Like the example I gave in the figure below,
enter image description here

I want to solve this problem completely.
Note: If you have any questions Please comment.

You must use t-extend in the template.xml code.

< /p>

ControlPanel is the template name of the control panel placed above the tree view.

Add this code to the template.xml code.



<-- Add your Drop down list here -->

o_cp_right is a class, after which you can add drop-down fields. You can change t- operation is set to append ,inner,after,replace.

Use js and python inside the tree view title to add the drop-down menu in odoo 8

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

I want to dynamically display all categories of products in this drop-down menu.

When I click on a specific category, the tree view sorts products of a specific clickable type inside the tree view.

That is

Suppose click on the Mobile category from drop-down menu so tree view inside show only Mobile types of products.

As I gave in the picture below For example,
enter image description here

I want to solve this completely Questions.
Note: Please comment if you have any questions.

You must use t-extend in the template.xml code.

p>

ControlPanel is the template name of the control panel placed above the tree view.

Add this code to the template.xml code.

 

<-- Add your Drop down list here -->

o_cp_right is a class, after which you can add drop-down fields. You can change the t-operation Set to append, inner, after, replace.

Leave a Comment

Your email address will not be published.