Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
12945 Näkymät

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

Avatar
Hylkää

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

Paras vastaus

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
Hylkää
Tekijä

thank you.

Paras vastaus

Hi,

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

Thanks

Avatar
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
huhtik. 21
13692
2
helmik. 25
5899
1
jouluk. 24
1451
1
marrask. 22
15967
3
elok. 22
12993