chat.freenode.net #tryton log beginning Thu Mar 14 00:00:01 CET 2019 | ||
-!- thaneor1(~lenovo3@179.26.142.204) has joined #tryton | 23:50 | |
-!- shard(~shard@223.74.176.209) has joined #tryton | 00:27 | |
-!- thaneor(~lenovo3@179.26.142.204) has joined #tryton | 00:31 | |
-!- mniip(mniip@freenode/staff/mniip) has joined #tryton | 03:09 | |
-!- yangoon(~mathiasb@i59F4D466.versanet.de) has joined #tryton | 03:15 | |
-!- thaneor1(~lenovo3@r179-25-86-184.dialup.adsl.anteldata.net.uy) has joined #tryton | 06:28 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 07:40 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 07:41 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:12 | |
-!- rpit(~rpit@p200300C88F307400CC9D4E98F4C6873E.dip0.t-ipconnect.de) has joined #tryton | 08:36 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 09:08 | |
-!- kapil____(uid36151@gateway/web/irccloud.com/x-zlcttmzgzlftjwer) has joined #tryton | 09:54 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 10:11 | |
-!- lukio(~lukio@host234.201-252-17.telecom.net.ar) has joined #tryton | 10:41 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 11:00 | |
-!- mariomop(~quassel@host43.201-253-199.telecom.net.ar) has joined #tryton | 11:09 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 11:24 | |
-!- gdrius(~gdrius@m83-189-0-103.cust.tele2.lt) has joined #tryton | 11:27 | |
-!- rhys1(~rhys@134.29.187.81.in-addr.arpa) has joined #tryton | 11:45 | |
-!- rhys1(~rhys@134.29.187.81.in-addr.arpa) has left #tryton | 12:14 | |
-!- lukio(~lukio@190.191.95.243) has joined #tryton | 12:16 | |
mrichez | hi, is there a way (other than cls._order.insert in the setup of the model) to define a default sort on a tree view ? | 13:19 |
---|---|---|
nicoe | Why can't you use cls._order? | 13:24 |
mrichez | nicoe: concrete example: purchase_lines are sequence_ordered. I've created a related on product to have a purchase_history using purchase_line tree view. For purchase_history, i define an order with cls._order by purchase_date asc and id desc... But with this order, sequence is no more working :-) | 13:28 |
mrichez | nicoe: by removing order by id, sequence is now working ... so i was wondering if there was another way to sort ... because once you've defined an order on the model, it become default_order on all the views linked to this model and on specific view you don't need this order | 13:31 |
nicoe | Maybe the one2many in purchase should specify the order of the lines using the sequence and the default order for purchase should be a better than the current one | 13:35 |
mrichez | nicoe: but not sure my order for purchase_history (purchase_date desc, id asc) should be the same than the default one for the purchase_lines | 13:37 |
-!- lukio(~lukio@190.191.95.243) has joined #tryton | 13:42 | |
mrichez | nicoe: as i said previously, i solved my problem by removing id ordering... but i asked to open discussion that only ordering on the model can be restrictive? could we imagine an attribute "default_order" on <tree> in xml view ? | 14:00 |
nicoe | mrichez: You can specify the order of an act_window | 14:04 |
mrichez | nicoe: ok thanks :-) | 14:08 |
-!- rpit(~rpit@p4FFB7256.dip0.t-ipconnect.de) has joined #tryton | 14:24 | |
-!- rpit(~rpit@p200300C88F30740000E56A91A5F05278.dip0.t-ipconnect.de) has joined #tryton | 15:04 | |
-!- kapil____(uid36151@gateway/web/irccloud.com/x-niwioihtfbqyqali) has joined #tryton | 17:46 | |
-!- thaneor(~lenovo3@179.26.52.176) has joined #tryton | 17:57 | |
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton | 21:00 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!