Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3557 Переглядів

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?

Related Posts Відповіді Переглядів Дія
1
трав. 16
5399
3
вер. 25
1786
2
лют. 25
6298
0
лип. 25
1738
2
лист. 24
7200