Odoo Help


List View in a Wizard... Odoo V8

Mazhar Iqbal Rana
on 1/19/15, 12:59 AM 1,059 views

Hey Good Day!

I am stuck in some problem, which might not be that difficult but at least for me as am new in this system.
I have 2 checkboxes i.e. chk1,chk2. When I select chk1 and press button named action_list. It should display me table in new wizard taking 2nd value only.
I tried the below code but it always displays me complete table taken from list view only.


    def action_list(self,cr,uid,ids,context=None):
        cr.execute("SELECT task_name,duration FROM activity_track")

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

       #return values  

        return {





      #'view_id': False,


      'nodestroy': True,

      'active_id' : 'activity_list_action',

      'target': 'current',


        } #Table name is activity_track and model is activity.track

The code above takes task_name and duration but I want to take the 2nd row only on chk1 selected


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/19/15, 12:59 AM
Seen: 1059 times
Last updated: 3/16/15, 8:10 AM