chat.freenode.net #tryton log beginning Thu Dec 22 00:00:01 CET 2016 | ||
2016-12-22 01:42 -!- thaneor1(~ldlc6@179.26.80.77) has joined #tryton | ||
2016-12-22 02:46 -!- thaneor(~ldlc6@r179-25-34-33.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-12-22 02:50 -!- kstenger1(~karla@r190-134-51-82.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-12-22 02:51 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton | ||
2016-12-22 03:43 -!- csotelo(~csotelo@2001:1388:49c5:4969:8f2a:963c:a1c6:88e) has joined #tryton | ||
2016-12-22 03:54 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2016-12-22 04:45 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton | ||
2016-12-22 07:19 -!- udono(~udono@tmo-109-41.customers.d1-online.com) has joined #tryton | ||
2016-12-22 07:30 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton | ||
2016-12-22 08:02 -!- sulamani(0116a082@gateway/web/freenode/ip.1.22.160.130) has joined #tryton | ||
2016-12-22 08:03 <sulamani> hi, How can I get all units for sale line? | ||
2016-12-22 08:04 <sulamani> I am able to get all uom via "model.product.uom.search_read" but not for units | ||
2016-12-22 08:13 -!- flachtassekasse(~flachtass@p5DD18CCE.dip0.t-ipconnect.de) has joined #tryton | ||
2016-12-22 08:33 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton | ||
2016-12-22 09:04 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton | ||
2016-12-22 09:04 -!- rpit(~rpit@2a02:908:e672:7480:56ee:75ff:fe0d:d3c7) has joined #tryton | ||
2016-12-22 09:13 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | ||
2016-12-22 09:41 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2016-12-22 11:11 -!- csotelo(~csotelo@2001:1388:49c5:817e:156e:302b:3913:aa79) has joined #tryton | ||
2016-12-22 11:50 <mrichez> hi, 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 ? | ||
2016-12-22 11:54 -!- flachtassekasse(~flachtass@p5DD191D9.dip0.t-ipconnect.de) has joined #tryton | ||
2016-12-22 12:26 -!- udono(~udono@tmo-109-41.customers.d1-online.com) has joined #tryton | ||
2016-12-22 12:29 <cedk> mrichez: in proteus, you have to set the order yourself with the sequence field | ||
2016-12-22 12:30 <cedk> mrichez: it could be a nice feature to have a function on ModelList that will fill automaticaly the sequence | ||
2016-12-22 12:32 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2016-12-22 12:33 <cedk> mrichez: https://bugs.tryton.org/issue6133 | ||
2016-12-22 12:39 <mrichez> cedk: so i need to browse each record to set sequence field in a specific order ? | ||
2016-12-22 12:40 <cedk> mrichez: yes | ||
2016-12-22 12:40 <mrichez> cedk: ok thanks! | ||
2016-12-22 12:45 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2016-12-22 13:57 -!- flachtassekasse(~flachtass@p5DD191D9.dip0.t-ipconnect.de) has joined #tryton | ||
2016-12-22 14:05 -!- mamcode(~mamcode@190-198-116-113.dyn.dsl.cantv.net) has joined #tryton | ||
2016-12-22 14:49 -!- thaneor1(~ldlc6@r186-48-16-161.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-12-22 15:08 <mrichez> back 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 ??? | ||
2016-12-22 15:09 <pokoli> mrichez: that sounds like a bug, could you post the relevant code? | ||
2016-12-22 15:12 <mrichez> pokoli: it's on a new module, so i'll create an issue with the whole code | ||
2016-12-22 15:12 <pokoli> mrichez: a pastebin with the relevant code is enough for me | ||
2016-12-22 15:13 <pokoli> mrichez: just to check if the bug is on your side or on our side ;) | ||
2016-12-22 15:13 <mrichez> pokoli: ok | ||
2016-12-22 15:14 <mrichez> pokoli: http://pastebin.com/ABshKw37 - Line 201 | ||
2016-12-22 15:14 <mrichez> pokoli: r.state is 'quotation' and not 'draft' | ||
2016-12-22 15:15 <mrichez> pokoli: and when i'm searching on state = 'quotation', it returns nothing | ||
2016-12-22 15:16 <pokoli> mrichez: PurchaseRequest.state is a functional field, so It must be a bug of it's searcher method | ||
2016-12-22 15:17 <pokoli> mrichez: i.e: Some state in the setter which is not applied on the searcher | ||
2016-12-22 15:17 <pokoli> mrichez: so it is not on the module you are developing, is a bug on the purchase_request module and should be reported | ||
2016-12-22 15:18 <pokoli> s/setter/getter/ | ||
2016-12-22 15:18 <mrichez> pokoli: no, i'm adding a new state in purchase_request with my module | ||
2016-12-22 15:19 <mrichez> pokoli: and i forgot to add this state in search_state method | ||
2016-12-22 15:19 <mrichez> pokoli: thanks! | ||
2016-12-22 15:19 <pokoli> mrichez: so that's the bug :P | ||
2016-12-22 15:19 <pokoli> mrichez: you're welcome :) | ||
2016-12-22 15:29 -!- kstenger(~karla@r186-48-240-112.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2016-12-22 15:36 -!- udono(~udono@tmo-109-41.customers.d1-online.com) has joined #tryton | ||
2016-12-22 15:51 <mrichez> i'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' | ||
2016-12-22 15:52 <mrichez> purchase_request state is function field and search_state is a query | ||
2016-12-22 16:07 <pokoli> mrichez: the easy way will be to factorize the searcher in order to allow to override the query | ||
2016-12-22 16:08 <mrichez> pokoli: ? | ||
2016-12-22 16:09 <pokoli> mrichez: ohh indeed you can customize the query | ||
2016-12-22 16:09 <pokoli> mrichez: super returns [('id', 'in', query)] | ||
2016-12-22 16:09 <pokoli> mrichez: and query is a python-sql query, that you can manipulate on your module extension | ||
2016-12-22 16:10 <pokoli> mrichez: and then return [('id', 'in', new_query)] | ||
2016-12-22 16:10 <pokoli> mrichez: don't know if i'm explaining well. If not let me now that I will upload some code example | ||
2016-12-22 16:10 <mrichez> pokoli: hum, new challenge for me :-) | ||
2016-12-22 16:10 <mrichez> pokoli: examples are welcome | ||
2016-12-22 16:16 <pokoli> mrichez: http://pastebin.com/yrVw41A2 | ||
2016-12-22 16:17 <mrichez> pokoli: fast ! thanks ! | ||
2016-12-22 16:18 <mrichez> pokoli: will check tomorrow or tonight, i'm leaving.. bye ! | ||
2016-12-22 16:18 <pokoli> mrichez: see youu :) | ||
2016-12-22 17:11 -!- smarro(~sebastian@58-227-16-190.fibertel.com.ar) has joined #tryton | ||
2016-12-22 17:16 -!- sharkcz(~sharkcz@2a01:8c00:ffb3:160:250:43ff:fe3c:3b5d) has joined #tryton | ||
2016-12-22 18:30 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2016-12-22 18:35 -!- smarro(~sebastian@58-227-16-190.fibertel.com.ar) has joined #tryton | ||
2016-12-22 18:39 -!- juliocuio(~Thunderbi@corp-200-105-253-66.uio.puntonet.ec) has joined #tryton | ||
2016-12-22 18:39 -!- juliocuio(~Thunderbi@corp-200-105-253-66.uio.puntonet.ec) has left #tryton | ||
2016-12-22 18:44 -!- julio-o(~Thunderbi@corp-200-105-253-66.uio.puntonet.ec) has joined #tryton | ||
2016-12-22 19:07 -!- mamcode(~mamcode@190-198-116-113.dyn.dsl.cantv.net) has joined #tryton | ||
2016-12-22 21:24 -!- pistache(~pistache@lebib.org) has joined #tryton | ||
2016-12-22 21:40 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2016-12-22 21:58 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton | ||
2016-12-22 22:14 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton | ||
2016-12-22 22:17 -!- JosDzG(~Thunderbi@187.188.72.36) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!