Help

2

action_buttons not working in popup window

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

2 Comments
Avatar
Discard
Avatar
Bodoo
-

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

Avatar
OdooBot
-
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.

1 Answer
0
Best Answer

Hi Fernando, did you find the solution? can your share it with us? please!

Avatar
Discard