Odoo Help


Buttton Click Event

Mazhar Iqbal Rana
on 1/14/15, 7:35 AM 517 views

Hey There

Good Day!


I have a button named as action_list and it is placed in XML file and works ok. What I want is that I want to fetch data from my table like vlaues on button click and this should be displayed in a new wizard where target =new. What should I get? I should have a table displayed in front end of Odoo showing all values... Below code is showing me list view of my current entered values. Am trying the below code. please guide me in all cases


def action_list(self,cr,uid,ids,context=None):

        cr.execute("SELECT * FROM activity_track WHERE id =%s",ids)

        result= map(lambda x: x[0], cr.fetchall())


        return {





          'nodestroy': True,

         # **'context':context,**

          'target': 'new',





Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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/14/15, 7:35 AM
Seen: 517 times
Last updated: 3/16/15, 8:10 AM