Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3548 Visualizações

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

Avatar
Cancelar
Melhor resposta

Hello,

You can search email.template for getting template_id value.

Avatar
Cancelar
Autor

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

Publicações relacionadas Respostas Visualizações Atividade
1
mai. 16
5394
3
set. 25
1781
2
fev. 25
6278
0
jul. 25
1732
2
nov. 24
7160