V16 When I create a sales order it pulls up all the contacts (including vendors) in the drop down list. I have added a tag customer to customers that I can filter on when I click on the search more (then add the filter each time). Is there anyway to default that filter either in the drop down list or in the search box?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Hi,
You can create a new filter option in filters using the code:
<record id="menu_website_store_search" model="ir.ui.view">
<field name="name">website.store.search</field>
<field name="model">website.store</field>
<field name="arch" type="xml">
<search string="Search Tips">
<filter name="is_published" string="Published" domain="[('is_published', '=','True')]"/>
</search>
</field>
</record>
After that we needs to makes that filter is default one using the code:
<record id="website_store" model="ir.actions.act_window">
<field name="name">Website Store</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">website.store</field>
<field name="view_mode">tree,form</field>
<field name="context">{'search_default_is_published':1}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new record!
</p>
</field>
</record>
Regards
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
0
dec. 22
|
2785 | ||
|
0
jul. 25
|
715 | ||
Filters in multiple companies
Opgelost
|
|
1
mei 25
|
1472 | |
ADD PROPERTIES
Opgelost
|
|
1
mei 25
|
1625 | |
|
2
mrt. 25
|
1413 |