コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
12972 ビュー

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

アバター
破棄

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

最善の回答

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

アバター
破棄
著作者

thank you.

最善の回答

Hi,

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

Thanks

アバター
破棄
著作者

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

関連投稿 返信 ビュー 活動
3
4月 21
13727
2
2月 25
5916
1
12月 24
1467
1
11月 22
16006
3
8月 22
13054