Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3549 Vues

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
Ignorer
Meilleure réponse

Hello,

You can search email.template for getting template_id value.

Avatar
Ignorer
Auteur

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

Publications associées Réponses Vues Activité
1
mai 16
5396
3
sept. 25
1781
2
févr. 25
6284
0
juil. 25
1734
2
nov. 24
7166