Odoo Help

1

action_buttons not working in popup window

By
Fernando Gomes
on 5/5/16, 7:30 PM 468 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,

}



Thanks,

Fernando

Hello Fernando I have the same problem did you find a solution to close after saving data in the form view ??

MouBou
on 12/28/16, 10:10 AM
Hello,

Unfortunately no... I did not find a way to do it (yet).

Fernando

From: MouBou [bouktaib.mohssin@gmail.com]
Sent: Wednesday, December 28, 2016 3:10 PM
To: Fernando Gomes
Subject: Re: action_buttons not working in popup window

Hello Fernando I have the same problem did you find a solution to close after saving data in the form view ??

--
MouBou


Sent by Odoo S.A. using Odoo.

RE: Become an OpenERP7 Partner
on 12/28/16, 9:23 AM

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.

Register

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)

Stats

Asked: 5/5/16, 7:30 PM
Seen: 468 times
Last updated: 12/28/16, 10:23 AM