Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3426 Tampilan

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')

Avatar
Buang
Jawaban Terbai

Hello,

You can search email.template for getting template_id value.

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Mei 16
5163
2
Feb 25
5942
0
Jul 25
1470
1
Des 24
1482
2
Nov 24
6323