Odoo Help


Is it possible to call a method using action menus?

Umashankar Subramani
on 1/24/15, 1:52 AM 1,402 views


   I have a doubt that is it possible to call a method using action creation ,using the bellow i have called a view but is it possible to call a method , here is the code

 <act_window name="New Sub menu"
                view_mode="form" target="new"
                id="act_new_sub_menu" />

               This code will add a menu to More option in the view, while clicking that menu it will call the form view  , can anyone give me suggestion....... Thanks in advance...




| 5 3 6
Jakarta, Indonesia
On 1/24/15, 3:21 AM

Yes, but you need to create a server action instead.  Check the action_partial_move_server in odoo/addons/stock/wizard/stock_partial_move_view.xml.  The ir_open_partial_move_wizard entry will put it in More menu.

I am new to odoo Ivan can you please elaborate.... or give me examples so that i can understand..... Thanks in advance..

Umashankar Subramani
on 1/24/15, 3:30 AM

I found it Ivan, my code is... sample view ir.actions.server wizard.popup 489 form form code self.sample_print(self,cr,uid) I am getting error like this "'wizard.popup' object has no attribute 'execute'" while evaluating u'self.sample_print(self,cr,uid)'

Umashankar Subramani
on 1/24/15, 7:01 AM

Take a look at how action_partial_move method is defined. If sample_print is the method that you want to call, then it has wrong signature.

on 1/24/15, 7:29 AM

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.


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)


Asked: 1/24/15, 1:52 AM
Seen: 1402 times
Last updated: 3/16/15, 8:10 AM