Hello Numérigraphe ,
Thanks for your reply.
I have checked again as per your comment #3 and I have face the
problem button still remains visible even in the wrong states.
Thank you!
** Changed in: openobject-client
Importance: Undecided => Low
** Changed in: openobject-client
Status: New => Confirmed
** Changed in: openobject-client
Assignee: (unassigned) => OpenERP sa GTK client R&D (openerp-dev-gtk)
--
You received this bug notification because you are a member of OpenERP
sa GTK client R&D, which is a bug assignee.
https://bugs.launchpad.net/bugs/941901
Title:
Can't use attrs{invisible} and states on the same button
Status in OpenERP Web:
Confirmed
Status in OpenERP GTK Client:
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/openerp-web/+bug/941901/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp