Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
12908 Visualizzazioni

how to display another field in manu2one instead of name. And Only effect to one model not for all models.

Avatar
Abbandona

By default, Odoo allows searching customers only by name and displays only the name in Many2One fields. This module enhances the Many2One search and display functionality by enabling users to search using multiple fields (Phone, Email, Mobile, etc.) and display multiple values directly inside the Partners Many2One selection.
https://apps.odoo.com/apps/modules/17.0/mh_partner_search_and_display_multiple_field

Risposta migliore

Override name_get Method change the selection value using context to shows different value in the view.

Refer the below link:- https://accounts.openerp.com/forum/Help-1/question/2589

Avatar
Abbandona
Autore

thank you.

Risposta migliore

Hi,

Set _rec_name='your display field' in relational object.

Thanks

Avatar
Abbandona
Autore

use _rec_name will effect all models related this model. what i need is that : only in my model show the rec_nane other model show name default

Post correlati Risposte Visualizzazioni Attività
3
apr 21
13686
2
feb 25
5882
1
dic 24
1445
1
nov 22
15938
3
ago 22
12975