Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3389 Vistas

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
Descartar
Mejor respuesta

Hello,

You can search email.template for getting template_id value.

Avatar
Descartar
Autor

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

Publicaciones relacionadas Respuestas Vistas Actividad
1
may 16
5149
2
feb 25
5853
0
jul 25
1402
1
dic 24
1413
2
nov 24
6156