تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3509 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

You can search email.template for getting template_id value.

الصورة الرمزية
إهمال
الكاتب

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 16
5353
3
سبتمبر 25
1734
2
فبراير 25
6209
0
يوليو 25
1686
2
نوفمبر 24
7014