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

Hello

Can any one tell me where do search the Many2one field like this below code?

Do this field search in database of "email_template" table and columns "body_html" or do search in "email_template" .py file and get template_id value?

 template_id = fields.Many2one(

        'email.template',

        'body_html',

        string='Template',

        domain=[('model', '=', 'res.user')],

        track_visibility='onchange',

        default='template_id')

아바타
취소
베스트 답변

Hello,

You can search email.template for getting template_id value.

아바타
취소
작성자

so where it will get value?from database tables or .py files?

관련 게시물 답글 화면 활동
1
5월 16
5418
3
9월 25
1855
2
2월 25
6406
0
7월 25
1833
2
11월 24
7376