コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3559 ビュー

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
5404
3
9月 25
1791
2
2月 25
6307
0
7月 25
1741
2
11月 24
7217