c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #07053
[Bug 645797] Re: wizard calling same state twice
** Changed in: openobject-client-web
Status: Confirmed => In Progress
** Changed in: openobject-client-web
Assignee: (unassigned) => RME(OpenERP) (rme-openerp)
** Changed in: openobject-client-web
Assignee: RME(OpenERP) (rme-openerp) => (unassigned)
--
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:
In Progress
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