Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3491 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

You can search email.template for getting template_id value.

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 16
5337
3
thg 9 25
1703
2
thg 2 25
6180
0
thg 7 25
1670
2
thg 11 24
6964