← Back to team overview

openerp-india team mailing list archive

[Bug 941901] Re: Can't use attrs{invisible} and states on the same button

 

The web client doesn't checks @attrs neither @states. Those are
aggregated to @modifiers by the server.

** Project changed: openerp-web => openobject-server

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/941901

Title:
  Can't use attrs{invisible} and states on the same button

Status in OpenERP GTK Client:
  Confirmed
Status in OpenERP Server:
  Confirmed

Bug description:
  In the current trunk, states are ignored when you define a button like this :
                                      <button name="action_xyz" string="Button"
                                          type="object" icon="gtk-media-play"
                                          attrs="{'invisible': [('field_xyz', '=', 'blah')]}"
                                          states="assigned"/>
  When state is not 'assigned', the button should be hidden but it remains visible and active.
  This bug affects:
  * form views in gtk client (not tree views)
  * tree views and form views in new web client
  Lionel Sausin.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/941901/+subscriptions