Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3464 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

Hello,

You can search email.template for getting template_id value.

Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
1
mai 16
5275
2
feb. 25
6024
0
iul. 25
1562
1
dec. 24
1546
2
nov. 24
6653