Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3553 Visualizzazioni

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
Abbandona
Risposta migliore

Hello,

You can search email.template for getting template_id value.

Avatar
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
mag 16
5397
3
set 25
1784
2
feb 25
6291
0
lug 25
1736
2
nov 24
7181