Skip to Content
Menu
This question has been flagged
1 Atsakyti
3354 Rodiniai

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

Portretas
Atmesti
Best Answer

Hello,

You can search email.template for getting template_id value.

Portretas
Atmesti
Autorius

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

Related Posts Replies Rodiniai Veikla
1
geg. 16
5107
2
vas. 25
5712
0
liep. 25
1298
1
gruod. 24
1325
2
lapkr. 24
5961