Hello All,
I am new to the odoo,I want to add textbox and a button in the search box area of tree view.
Please help me on this.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello All,
I am new to the odoo,I want to add textbox and a button in the search box area of tree view.
Please help me on this.
Hi yogest, you cannot add the text box in the search view. You can add a filter for the search box.Try this example code in the your xml "search "view
<record id="view_account_analytic_account_search" model="ir.ui.view">
<field name="name">account.analytic.account.search</field>
<field name="model">account.analytic.account</field>
<field name="arch" type="xml">
<search string="Analytic Account">
<filter string="Draft" icon="terp-go-home" domain="[('state','=','draft')]" />
</group>
</search>
</field>
</record>
Hi vasanth thankyou,
Since i am new to odoo,i didnt understand the filter attributes,Please explain the attributes,Specifically 'domain="[('state','=','draft')]".
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
0
iun. 18
|
2529 | ||
|
2
mar. 23
|
10690 | ||
Cacher le bouton "créer" d'une liste
Rezolvat
|
|
2
mar. 23
|
2887 | |
Add class to button from function
Rezolvat
|
|
2
mai 22
|
5035 | |
|
0
mar. 22
|
1947 |