Odoo Help


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.


action_buttons not working in popup window

Fernando Gomes
on 5/5/16, 7:30 PM 218 views

Hello All,

When I add the 'flags': {'form': {'action_buttons': True}} to the return values I do get the Save and Cancel buttons but the Cancel button does nothing and the Save button saves but does not close the popup window.

Is there anyway to add some more values / attributes to the return list so that the popup would act just like the "Create and Edit..." of a M2M field?

My form button has the following code:

        return {

#'name': _('My Form'),

'type': 'ir.actions.act_window',

'view_type': 'form',

'view_mode': 'form',

'res_model': 'my.model',

'target': 'new',

'flags': {'form': {'action_buttons': True}},

'context': {'partner_id': self.partner_id.id, 'partner_office_id': self.partner_office_id.id,},

#'res_id': False,

'domain': [],

'value': {

'partner_id': self.partner_id.id,

'partner_office_id': self.partner_office_id.id,




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)


Asked: 5/5/16, 7:30 PM
Seen: 218 times
Last updated: 5/6/16, 1:08 AM