c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #12586
[Bug 702665] Re: warning message on object button closes the window
Hello Christophe,
Buttons with type == "object" expect the called method to return an action dictionary, e.g:
{ 'type': 'ir.actions.act_window',
'model': 'res.partner',
etc...
}
The check_infos() method you are quoting returns a value that is
appropriate for on_change() methods instead.
As the returned dict does not have the expected format, the behavior of
the clients is undetermined.
** Changed in: openobject-server
Status: New => Invalid
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/702665
Title:
warning message on object button closes the window
Status in OpenObject Server:
Invalid
Bug description:
I'm trying to display a simple warning dialog with an object button.
<button name="check_infos" string="Confirm" type="object" />
def check_infos(self, cr, uid, ids, context):
return { 'warning': {'title': 'test', 'message':'test'} }
I don't get the expected message, but :
- in the web client I'm redirected to the home page
- in the gtk client, I'm redirected to /dev/null : the client is killed
I'm on v6 trunk rev 3260
References