please help
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
Using mapped function
self.env[].search([]).mapped('field_name')
Hello, Othmane Lafjer
I hope you are doing well.
- You can use the .mapped() function to get many fields's value (here, site_id) in list.
Example,
You can use .mapped() like this:
sites = self.env[model].search([]).mapped(field)
FYI:
model = Model that field is present in.
field = Which field's value you want to get in list.
I hope this will help you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
why dont you use the search_read instead?
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'inscrire