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.

1

List view button clicked switch into the form view?

By
Prakash
on 7/16/13, 6:57 AM 1,163 views

Default in openerp list view record once clicked its open the form view in edit mode. The same functionality how to apply in button for example List view button added once list view button clicked it switch into the form view based on this the below code used:-

        return {
            "type": "ir.actions.act_window",
            "name": "Sales Order",
            "res_model": "sale.order",
            "res_id": ids and ids[0] or False,
            "view_type": "form",
            "view_mode": "form, tree,calendar,graph",
            "view_id":  False
    "views" : [(False,'form'),(False,'tree'),(False,'calendar'),(False,'graph')],
    }

After clicking the button Form view shows data after that switch into list view data not shows but other view calendar, graph and form shows data. Only list view not shows data how to solve the issue?

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

0 follower(s)

Stats

Asked: 7/16/13, 6:57 AM
Seen: 1163 times
Last updated: 5/27/15, 10:22 AM