Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3529 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hello,

You can search email.template for getting template_id value.

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
1
maj 16
5366
3
wrz 25
1750
2
lut 25
6236
0
lip 25
1711
2
lis 24
7072