Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3475 Представления

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
5291
2
февр. 25
6066
0
июл. 25
1604
1
дек. 24
1564
2
нояб. 24
6739