Odoo Help

0

get ids from tree view to form view

By
benmansour abdessamed
on 3/10/16, 6:34 AM 591 views

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.

0

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


0
Motez
On 3/11/16, 6:31 AM

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.  

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/10/16, 6:34 AM
Seen: 591 times
Last updated: 3/11/16, 6:31 AM