IRC logs of #tryton for Thursday, 2016-12-22

chat.freenode.net #tryton log beginning Thu Dec 22 00:00:01 CET 2016
-!- thaneor1(~ldlc6@179.26.80.77) has joined #tryton01:42
-!- thaneor(~ldlc6@r179-25-34-33.dialup.adsl.anteldata.net.uy) has joined #tryton02:46
-!- kstenger1(~karla@r190-134-51-82.dialup.adsl.anteldata.net.uy) has joined #tryton02:50
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton02:51
-!- csotelo(~csotelo@2001:1388:49c5:4969:8f2a:963c:a1c6:88e) has joined #tryton03:43
-!- smarro(~sebastian@181.16.7.104) has joined #tryton03:54
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton04:45
-!- udono(~udono@tmo-109-41.customers.d1-online.com) has joined #tryton07:19
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton07:30
-!- sulamani(0116a082@gateway/web/freenode/ip.1.22.160.130) has joined #tryton08:02
sulamanihi, How can I get all units for sale line?08:03
sulamaniI am able to get all uom via "model.product.uom.search_read" but not for units08:04
-!- flachtassekasse(~flachtass@p5DD18CCE.dip0.t-ipconnect.de) has joined #tryton08:13
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton08:33
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton09:04
-!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton09:04
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton09:13
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:41
-!- csotelo(~csotelo@2001:1388:49c5:817e:156e:302b:3913:aa79) has joined #tryton11:11
mrichezhi, in proteus in need to sort a one2many field and then save it... do i need to pop and append any value in the one2many after sorting ?11:50
-!- flachtassekasse(~flachtass@p5DD191D9.dip0.t-ipconnect.de) has joined #tryton11:54
-!- udono(~udono@tmo-109-41.customers.d1-online.com) has joined #tryton12:26
cedkmrichez: in proteus, you have to set the order yourself with the sequence field12:29
cedkmrichez: it could be a nice feature to have a function on ModelList that will fill automaticaly the sequence12:30
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton12:32
cedkmrichez: https://bugs.tryton.org/issue613312:33
mrichezcedk: so i need to browse each record to set sequence field in a specific order ?12:39
cedkmrichez: yes12:40
mrichezcedk: ok thanks!12:40
-!- smarro(~sebastian@181.16.7.104) has joined #tryton12:45
-!- flachtassekasse(~flachtass@p5DD191D9.dip0.t-ipconnect.de) has joined #tryton13:57
-!- mamcode(~mamcode@190-198-116-113.dyn.dsl.cantv.net) has joined #tryton14:05
-!- thaneor1(~ldlc6@r186-48-16-161.dialup.adsl.anteldata.net.uy) has joined #tryton14:49
mrichezback with proteus: i'm doing a .find() on a specific state then a loop on the results to check state... x = Model.find([('state', '=', 'draft')]) and when i'm looping on the results, it's displaying results in another state ???15:08
pokolimrichez: that sounds like a bug, could you post the relevant code?15:09
mrichezpokoli: it's on a new module, so i'll create an issue with the whole code15:12
pokolimrichez: a pastebin with the relevant code is enough for me15:12
pokolimrichez: just to check if the bug is on your side or on our side ;)15:13
mrichezpokoli: ok15:13
mrichezpokoli: http://pastebin.com/ABshKw37   - Line 20115:14
mrichezpokoli: r.state is 'quotation' and not 'draft'15:14
mrichezpokoli: and when i'm searching on state = 'quotation', it returns nothing15:15
pokolimrichez: PurchaseRequest.state is a functional field, so It must be a bug of it's searcher method15:16
pokolimrichez: i.e: Some state in the setter which is not applied on the searcher15:17
pokolimrichez: so it is not on the module you are developing, is a bug on the purchase_request module and should be reported15:17
pokolis/setter/getter/15:18
mrichezpokoli: no, i'm adding a new state in purchase_request with my module15:18
mrichezpokoli: and i forgot to add this state in search_state method15:19
mrichezpokoli: thanks!15:19
pokolimrichez: so that's the bug :P15:19
pokolimrichez: you're welcome :)15:19
-!- kstenger(~karla@r186-48-240-112.dialup.adsl.anteldata.net.uy) has joined #tryton15:29
-!- udono(~udono@tmo-109-41.customers.d1-online.com) has joined #tryton15:36
mrichezi'm wondering how to inherit search_state method from purchase_request module ? i add a field one2many "quotations", if this field is not empty and the request state is 'draft' then the request state is 'quotation'15:51
mrichezpurchase_request state is function field and search_state is a query15:52
pokolimrichez: the easy way will be to factorize the searcher in order to allow to override the query16:07
mrichezpokoli: ?16:08
pokolimrichez: ohh indeed you can customize the query16:09
pokolimrichez: super returns [('id', 'in', query)]16:09
pokolimrichez: and query is a python-sql query, that you can manipulate on your module extension16:09
pokolimrichez: and then return [('id', 'in', new_query)]16:10
pokolimrichez: don't know if i'm explaining well. If not let me now that I will upload some code example16:10
mrichezpokoli: hum, new challenge for me :-)16:10
mrichezpokoli: examples are welcome16:10
pokolimrichez: http://pastebin.com/yrVw41A216:16
mrichezpokoli: fast ! thanks !16:17
mrichezpokoli: will check tomorrow or tonight, i'm leaving.. bye !16:18
pokolimrichez: see youu :)16:18
-!- smarro(~sebastian@58-227-16-190.fibertel.com.ar) has joined #tryton17:11
-!- sharkcz(~sharkcz@2a01:8c00:ffb3:160:250:43ff:fe3c:3b5d) has joined #tryton17:16
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton18:30
-!- smarro(~sebastian@58-227-16-190.fibertel.com.ar) has joined #tryton18:35
-!- juliocuio(~Thunderbi@corp-200-105-253-66.uio.puntonet.ec) has joined #tryton18:39
-!- juliocuio(~Thunderbi@corp-200-105-253-66.uio.puntonet.ec) has left #tryton18:39
-!- julio-o(~Thunderbi@corp-200-105-253-66.uio.puntonet.ec) has joined #tryton18:44
-!- mamcode(~mamcode@190-198-116-113.dyn.dsl.cantv.net) has joined #tryton19:07
-!- pistache(~pistache@lebib.org) has joined #tryton21:24
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton21:40
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton21:58
-!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton22:14
-!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton22:17

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!