Search code examples
pythontreeviewactionodoo-8function-call

Odoo 8 function call on opening (tree) view


Is there a way to call a python function (server action) to a view being opened. So when I click a menuitem not only a tree view opens (window action) but also a python function executes (server action).

Maybe something like an onload() function? Or a server action from within the tree view?

Thanks


Solution

  • There is one way to make it happen. Just add that functional field in tree view and make it invisible So it will be also called in tree view