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

I am trying to show a list of all tasks for the same customer in a tree view on each task form.  For instance if Customer1 has 3 tasks, I'd like to show those 3 tasks on each task form, sort of a work history tree view.


My first thought on this was to use many2one relation then one2many back but that gives an error about undefined field.  What would be the best method to do this as I could see it being useful in many areas where you want to show all of the objects with a certain field in common on a form view.

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

You could define a dummy field of type many2many and relation project.task in your model and put that dummy field with a domain in the view using the customer field

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

Thanks, I tried that to no avail.  My temporary solution was to use a smart button to a filtered tree, it works good enough for this module...wouldn't mind an answer for the next time though.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 23
2644
1
thg 4 23
5630
1
thg 3 23
2219
0
thg 12 22
2863
0
thg 6 21
2870