← Back to team overview

openerp-dev-web team mailing list archive

[Bug 645797] Re: wizard calling same state twice

 

Hello Parthiv Patel,

Our R&D Teams are currently focused on the latest OpenERP version, and
the feature you're describing is currently not supported by OpenERP, so
i'm setting your bug as confirmed for the Trunk version.

In the case of past stable releases of OpenERP, you may contact our
Maintenance team via the OpenERP Publisher's Warranty, and they will
quickly help you solve this issue.

Thanks for your contribution !

-- 
You received this bug notification because you are a member of OpenERP
SA's Web Client R&D, which is a bug assignee.
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:
  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