IRC logs of #tryton for Thursday, 2019-03-14

chat.freenode.net #tryton log beginning Thu Mar 14 00:00:01 CET 2019
-!- thaneor1(~lenovo3@179.26.142.204) has joined #tryton00:03
-!- shard(~shard@223.74.176.209) has joined #tryton01:03
-!- thaneor(~lenovo3@179.26.142.204) has joined #tryton01:03
-!- mniip(mniip@freenode/staff/mniip) has joined #tryton04:03
-!- yangoon(~mathiasb@i59F4D466.versanet.de) has joined #tryton04:03
-!- thaneor1(~lenovo3@r179-25-86-184.dialup.adsl.anteldata.net.uy) has joined #tryton07:03
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:03
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:03
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:03
-!- rpit(~rpit@p200300C88F307400CC9D4E98F4C6873E.dip0.t-ipconnect.de) has joined #tryton09:03
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:03
-!- kapil____(uid36151@gateway/web/irccloud.com/x-zlcttmzgzlftjwer) has joined #tryton10:03
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton11:03
-!- lukio(~lukio@host234.201-252-17.telecom.net.ar) has joined #tryton11:03
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton12:03
-!- mariomop(~quassel@host43.201-253-199.telecom.net.ar) has joined #tryton12:03
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton12:03
-!- gdrius(~gdrius@m83-189-0-103.cust.tele2.lt) has joined #tryton12:03
-!- rhys1(~rhys@134.29.187.81.in-addr.arpa) has joined #tryton12:03
-!- rhys1(~rhys@134.29.187.81.in-addr.arpa) has left #tryton13:03
-!- lukio(~lukio@190.191.95.243) has joined #tryton13:03
mrichezhi, is there a way (other than cls._order.insert in the setup of the model) to define a default sort on a tree view ?14:03
nicoeWhy can't you use cls._order?14:03
mricheznicoe: 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 :-)14:03
mricheznicoe: 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 order14:03
nicoeMaybe 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 one14:03
mricheznicoe: but not sure my order for purchase_history (purchase_date desc, id asc) should be the same than the default one for the purchase_lines14:03
-!- lukio(~lukio@190.191.95.243) has joined #tryton14:03
mricheznicoe: 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 ?15:03
nicoemrichez: You can specify the order of an act_window15:03
mricheznicoe: ok thanks :-)15:03
-!- rpit(~rpit@p4FFB7256.dip0.t-ipconnect.de) has joined #tryton15:03
-!- rpit(~rpit@p200300C88F30740000E56A91A5F05278.dip0.t-ipconnect.de) has joined #tryton16:03
-!- kapil____(uid36151@gateway/web/irccloud.com/x-niwioihtfbqyqali) has joined #tryton18:03
-!- thaneor(~lenovo3@179.26.52.176) has joined #tryton18:03
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:03

Generated by irclog2html.py 2.16.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!