İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3444 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
5233
2
Şub 25
5972
0
Tem 25
1504
1
Ara 24
1495
2
Kas 24
6464