跳至内容
菜单
此问题已终结
1 回复
3467 查看

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
5276
2
2月 25
6028
0
7月 25
1563
1
12月 24
1547
2
11月 24
6664