İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3597 Görünümler

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
Vazgeç
En İyi Yanıt

Hello,

You can search email.template for getting template_id value.

Avatar
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
May 16
5434
3
Eyl 25
1924
2
Şub 25
6462
0
Tem 25
1888
2
Kas 24
7473