This is supported in trunk now, but those attrs values have never been meant to
depend on the presence of other columns.
If you want to hide or show columns based on the presence of other columns you
should do so when you are creating the definition of the view, and simply put
only the columns you need!
You could even use <field name="XXX" invisible="1"/> if you want to include it
in the view but hide it.
The attrs attribute is meant only for dynamic behavior according to
dynamic values, like hiding a button depending on the state of the
record, etc.
Thanks,
** Changed in: openobject-client/trunk
Status: Confirmed => Fix Released
** Changed in: openobject-client/trunk
Milestone: None => 6.0-rc2
** Changed in: openobject-client/trunk
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/531814
Title:
attrs={'invisible'} on field tags does not work
Status in OpenObject GTK Client:
Fix Released
Status in OpenObject GTK Client 5.0 series:
Invalid
Status in OpenObject GTK Client trunk series:
Fix Released
Bug description:
Hi,
Theres is a bug in the OpenObject Gtk-Client.
<field name="prenom" attrs="{'invisible': [('nom', '=', 'amine') ] }" /> work
only in the WebClient, it works on GTK-client only wrapped in a group tag.
Also, Invisible attribute don't work on treeview.
See :
http://www.openerp.com/forum/topic15461.html?sid=5b67141aeea71efe3c702f6d84e17cd7
for more informations.
_______________________________________________
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