← Back to team overview

openerp-dev-web team mailing list archive

[Bug 645797] [NEW] wizard calling same state twice

 

You have been assigned a bug task for a public bug by RME(OpenERP) (rme-openerp):

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

** Affects: openobject-client-web
     Importance: Undecided
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Confirmed

** Affects: openobject-client-web/5.0
     Importance: Undecided
         Status: Won't Fix

** Affects: openobject-client-web/trunk
     Importance: Undecided
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Confirmed

-- 
wizard calling same state twice
https://bugs.launchpad.net/bugs/645797
You received this bug notification because you are a member of OpenERP SA's Web Client R&D, which is a bug assignee.