Skip to Content
Menú
This question has been flagged
1 Respondre
3345 Vistes

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
Descartar
Best Answer

Hello,

You can search email.template for getting template_id value.

Avatar
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
1
de maig 16
5105
2
de febr. 25
5709
0
de jul. 25
1294
1
de des. 24
1324
2
de nov. 24
5946