chat.freenode.net #tryton log beginning Thu Nov 1 00:00:01 CET 2012 | ||
2012-11-01 21:37 <coeps> good evening everybody: I was wondering if there is a reason, that in the documentation (i.e. 2.2) some information is missing that is available in 1.4. Example: the tree view tag "select". This makes it really hard to find information. | ||
2012-11-01 22:24 <coeps> I am playing around with the sorting of columns in trees. I can sort all columns in Product/Units (even the numbers) but not in Products. | ||
2012-11-01 22:25 <coeps> It does not seem to be the select =1 attribute of the field and the select in the xml (seems to be deprecated :)). | ||
2012-11-01 22:26 <coeps> Can someone give me a hint, ho I can make columns sortable, please | ||
2012-11-01 22:26 <cedk> coeps: sort only works on fields that are supported by the ORM | ||
2012-11-01 22:26 <coeps> and how can I identify them? | ||
2012-11-01 22:31 <cedk> coeps: this is the test: http://hg.tryton.org/trytond/file/8b4d284d9c24/trytond/model/model.py#l497 | ||
2012-11-01 22:32 <cedk> coeps: so it is all except those in this case | ||
2012-11-01 22:32 <cedk> coeps: or simply in the UI if you click on the column and nothing happens then it can not be sorted | ||
2012-11-01 22:40 <coeps> cedk: thank you, I will use "Float" rather than Numeric in future :) | ||
2012-11-01 22:41 <cedk> coeps: numeric are sortable | ||
2012-11-01 22:52 <coeps> ok, I have a form, where a list of referenced objects is dissplayed (like in invoice lines). None of the columns is sortable, but these are float, text, numeric. Or does a tree in a form behave different | ||
2012-11-01 22:57 <coeps> image: http://dug.im/270dd | ||
2012-11-01 23:13 <coeps> ok, I tried with the demo, invoice lines are not sortable too. So i guess right now it is not possible. |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!