Hi I need to remove or disable search option in many2one widget. I'm using openerp version 6.1 Any help...thanks in advanced.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
Sorry that this is almost a decade late, but for anyone that's still searching:
You can use domains to achieve this functionality
e.g.
<field name="job_id" domain="[('id', '=', -1)]"/>
Applying a domain that returns no results, as seen in the example, essentially forces the user to create a new record in order to select a value for this field.
Good luck!
Adding widget="selection"
in xml against many2one field should solve your problem
Thanks for answer my question, but i can't use that solution, because I need to create and edit elements in that widget. There is a way to disable Create option: attrs="{'nocreate':[('coordenada_id','!=','')]", I need something similar with Search option . Any help will be welcome....pd: sorry my English.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
4
sept. 20
|
9079 | ||
|
0
avr. 18
|
3776 | ||
|
0
mars 15
|
3591 | ||
|
0
juil. 25
|
276 | ||
|
0
avr. 25
|
752 |