This is my own solution. Change the class char in /openerp-client/widget/view/tree_gtk/parser.py
with: class Char(object): def __init__(self, field_name, treeview=None, attrs=None, window=None): self.field_name = field_name self.attrs = attrs or {} self.renderer = gtk.CellRendererText() self.treeview = treeview if not window: window = service.LocalService('gui.main').window self.window = window def attrs_set(self, model, cell): if self.attrs.get('attrs',False): attrs_changes = eval(self.attrs.get('attrs',"{}"),{'uid':rpc.session.uid}) for k,v in attrs_changes.items(): # result = False # for condition in v: # result = tools.calc_condition(self,model,condition) # model[self.field_name].get_state_attrs(model)[k] = result + result = True + for condition in v: + result = result and tools.calc_condition(self,model,condition) + if result: + if k=='invisible': + cell.set_property('visible', False) + else: + if k=='invisible': + cell.set_property('visible', True) It works fine for me. Manfred -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=55072#55072 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users