c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #05053
[Bug 645797] Re: wizard calling same state twice
Hello Tech Receptives,
Can you please attach a test module ?
Thanks.
** Changed in: openobject-client-web
Status: Confirmed => Incomplete
--
wizard calling same state twice
https://bugs.launchpad.net/bugs/645797
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Web Client: Incomplete
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