Odoo Help

Welcome!

This community 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.

0

ListView doesn't work properly (won't open form view) after custom javascript refresh.

By
Henrik Norlin
on 11/26/15, 4:55 PM 752 views

I need to refresh a list view with do_action from javascript. The code below works, but afterwards when I click on a record, it does not open in form view. Why? I tested in V8 and V9. 

V8 error: Uncaught Error: QWeb2 - template['ViewManagerDebug']: Runtime Error: TypeError: Cannot read property 'view_id' of undefined

V9 no error ('ViewManagerDebug' does not exist in V9)

self.do_action({

    type: 'ir.actions.act_window',

    res_model: 'ir.module.module',

    views: [[false, 'list']], 

});

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/26/15, 4:55 PM
Seen: 752 times
Last updated: 11/27/15, 1:41 PM