Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
13204 Widoki

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

Awatar
Odrzuć

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

thank you.

Najlepsza odpowiedź

Hi,

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

Thanks

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
3
kwi 21
13932
3
wrz 25
1797
2
lut 25
6309
1
lis 22
16274
3
sie 22
13531