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

Hi,

Can any one tell me how i can get the all ids that existe in the tree view if i click in button that exist in form view.  

For more detailles :

I have field (leaves_period) that exist in the model hr.contract, i want if i select one leaves_period for one contract, i have the possibility to affect this period by cliking in button to the all contract that filtred in the tree veiw.

Thankx.

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

Thanx for your reply,

The domain isn't define in the tree,

for exemple, when i will display contracts, i find the all contracts, if i do somme filtre with search field like select contract of departement X, so in the tree i will have just the contrat with departement X. than i select one contract, i will have the formulaire contract, in this formulaire i want to create a bouton that have a function that will aplay for the all contract that exist (filtred) in the tree view and not just to the contract selected.

Thanx


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

you need to apply the same domain used in the action.

To get the domain used in the tree view you can run odoo in debug mode then Edit Action. You'll find the condition you are looking for in the domain value.  

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 23
4694
2
thg 6 22
4051
0
thg 9 21
2235
0
thg 9 20
1773
2
thg 3 19
27980