← Back to team overview

openerp-india team mailing list archive

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

 

You have been subscribed to a public bug:

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.

** Affects: openobject-server
     Importance: Low
     Assignee: OpenERP R&D Web Team (openerp-dev-web)
         Status: Confirmed

** Affects: openobject-client
     Importance: Low
     Assignee: OpenERP sa GTK client R&D (openerp-dev-gtk)
         Status: Confirmed

-- 
Can't use attrs{invisible} and states on the same button
https://bugs.launchpad.net/bugs/941901
You received this bug notification because you are a member of OpenERP Indian Team, which is subscribed to OpenERP Server.