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 ??
Unfortunately no... I did not find a way to do it (yet).
Fernando
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.