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

How to set a context for a field in a O2M through Studio

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

If you want to set a context for a field of another model via a O2M, you have the possibility to set the context directly on this O2M and not in the related model. 

An example would be to auto-fill the partner_id field of the timesheets (timesheet_ids) on a ticket. You can open Studio, select the timesheet_ids field and directly add the default value for the partner_id in the context of this field: 


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 21
4
1
thg 4 21
8
1
thg 10 21
4919
1
thg 5 21
7026
5
thg 10 24
12160