You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to try...@googlegroups.com
Hi everybody!
I have a function field that depends on a many2one. I display this field
inside a tree view. I wanted to be sortable, so I found this doc[0] that
talks about it. The examples inside the code[1] are all about to sort
from a field that is from the same table. I will want to sort from a
different table, but I do not understand how to write that kind of code.
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to try...@googlegroups.com
El 22/01/18 a las 18:41, Luciano Rossi escribió:
> Hi everybody!
>
> I have a function field that depends on a many2one. I display this field
> inside a tree view. I wanted to be sortable, so I found this doc[0] that
> talks about it. The examples inside the code[1] are all about to sort
> from a field that is from the same table. I will want to sort from a
> different table, but I do not understand how to write that kind of code.
>
> [0] http://doc.tryton.org/4.4/trytond/doc/ref/models/fields.html#ordering > [1] http://hg.tryton.org/modules/timesheet/file/tip/line.py#l287 >
> PS: I also asked this question at irc, but nobody reply, and I need it
> to leave. That's why I'm asking also here.
>
> Thanks!
Hi,
Researching, I found a betters examples of what I was looking for and
help me to write the order_ method.