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

How to close a one2many form dialog with a button click

By
Eric
on 6/16/14, 12:11 PM 678 views

Hello, I have a one2many dialog that opens when a user clicks on a record from a one2many list.  I have a button on the dialog that calls a method from the model.  What I would like to do is close the dialog after the method is completed without clicking the close button in the upper right corner.  In my method I have this line which I thought would close the dialog, but for some reason it isnt

 

    return {'type': 'ir.actions.act_window_close'}

 

If someone can please help me I would appreciate it. Thank you

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: 6/16/14, 12:11 PM
Seen: 678 times
Last updated: 3/16/15, 8:10 AM