← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 645797] Re: wizard calling same state twice

 

Hi Jay,

Attached is the module that you can use for testing of this bug.

Regards,
Parthiv

** Attachment added: "test.zip"
   https://bugs.launchpad.net/openobject-client-web/+bug/645797/+attachment/1751074/+files/test.zip

** Changed in: openobject-client-web
       Status: Incomplete => Confirmed

-- 
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: Confirmed

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