Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3423 Zobrazení

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
Zrušit
Nejlepší odpověď

Hello,

You can search email.template for getting template_id value.

Avatar
Zrušit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
1
kvě 16
5163
2
úno 25
5916
0
čvc 25
1470
1
pro 24
1467
2
lis 24
6318