Hi all, Does anybody know hot to set the maximum content size in the search views fields?
I'll try to explain better. If you open the product tree view, you can filter products by name, code and category (fields selected by select="1" attribute in view definition) Well, by default, char fields that comes from a one2many or many2many field seems to be limited to 16 characters input (e.g. category field). I need to extend this limit for my own module. I found a workaround but I don't like it. In tinyerp-client/widget_search/char.py at line 39 we have: self.widget = gtk.Entry() self.widget.set_max_length(int(attrs.get('size',16))) self.widget.set_width_chars(5) I just changed 16 in 32 and its done. Well, I don't like this solution because I'd like to leave tiny official (especially the client) code as is. I don't want to mantain it on every upgrade. I'd like to solve it from inside my own custom module. I couldn't find any documentation on size and/or width attributes in view definition. Thank you in advance. Claudio P.S: I'm learning Python "in field", developing my customization of tiny, maybe for most of you the answer is trivial. Sorry for that. P.P.S.: I'm sorry to duplicate my post (already sent to developers forum) but in 1 week it has been read only 20 times (half of which by myself [Crying or Very sad] )! _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
