c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #07565
[Bug 645797] Re: wizard calling same state twice
Old style wizards are not supported anymore in version 6.
** Changed in: openobject-client-web/trunk
Status: Confirmed => Won't Fix
** Changed in: openobject-client-web/trunk
Status: Won't Fix => 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/645797
Title:
wizard calling same state twice
Status in OpenObject Web Client:
Confirmed
Status in OpenObject Web Client 5.0 series:
Won't Fix
Status in OpenObject Web Client trunk series:
Invalid
Bug description:
When we have following kind of state structure, a problem arise with web client, In code below, web client is calling "_convert_to_sale" function, when we click on "Open" button which is supposed to execute only _show_data function.
This code is working fine with GTK Client.
states = {
'init': {
'actions': [_make_form],
'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel'), ('create', 'Create'))},
},
'create': {
'actions': [_convert_to_sale],
'result': {'type':'form', 'arch':confirm_form,'fields':confirm_fields,'state':[('end','OK'),('open_form','Open')]},
},
'open_form': {
'actions': [],
'result': {'type': 'action', 'action': _show_data, 'state':'end'}
},
}
Regards,
Parthiv Patel
Tech Receptives