콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
12953 화면

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
13700
2
2월 25
5902
1
12월 24
1453
1
11월 22
15975
3
8월 22
13005