Tree view header inside add the dropdown menu in odoo 8 using js and python
I am use odoo-8. My question is how to add the dropdown menu above side on tree view in odoo8 using JS and python.
And I want to dynamically show the all the category of products in this drop-down menu.
And when i click on the particular category so, tree view inside sort particular clickable types of products.
i.e
Suppose click on the
Mobile
category from drop-down menu so tree view inside show onlyMobile
types of products.
Like I give the example in below image,
I want to full solution of this question.
Note: If any query so comment please.
1 Answers
Answers 1
You have to use t-extend in your template.xml code.
ControlPanel is template name of the controlpanel that placed above tree view.
Add this code inside of your template.xml code.
<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 is class after that you can add your dropdown field. You can set t-operation as append, inner, after, replace as per your requirment.
0 comments:
Post a Comment