IRC logs of #tryton for Thursday, 2017-09-21

chat.freenode.net #tryton log beginning Thu Sep 21 00:00:01 CEST 2017
2017-09-21 00:29 -!- cdchapman(~perturbed@67-2-207-64.slkc.qwest.net) has joined #tryton
2017-09-21 00:43 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-09-21 01:09 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-09-21 02:18 -!- thaneor(~ldlc6@179.26.57.110) has joined #tryton
2017-09-21 02:30 -!- meigallodixital_(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton
2017-09-21 03:30 -!- kstenger1(~karla@r186-54-41-91.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-09-21 06:22 -!- Puggy(~FASDFSF@unaffiliated/fasdfsf) has joined #tryton
2017-09-21 08:17 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2017-09-21 08:17 -!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton
2017-09-21 08:28 -!- cdchapman(~perturbed@67-2-207-64.slkc.qwest.net) has joined #tryton
2017-09-21 08:29 -!- Puggy(~FASDFSF@unaffiliated/fasdfsf) has joined #tryton
2017-09-21 09:05 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2017-09-21 09:14 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-09-21 09:23 -!- Timitos(~kpreisler@tmo-081-155.customers.d1-online.com) has joined #tryton
2017-09-21 10:05 -!- thaneor1(~ldlc6@r179-25-103-80.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-09-21 10:21 -!- csotelo(~csotelo@2001:1388:49c7:87b0:dbd4:b916:12da:3ba4) has joined #tryton
2017-09-21 11:14 -!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton
2017-09-21 11:31 <csotelo> dear coders, for any reasong this sentence is no working well on one of my reports <myarray[2] or None>, error tell me "IndexError: list index out of range", although is ok, I hope when an index doesnt exists on my array, then give me null or something like that. Any suggest?
2017-09-21 11:34 <cedk> csotelo: test if the length is right before using it
2017-09-21 11:34 -!- nicoe(~nicoe@2a02:578:858c:500:ee55:f9ff:fe7b:f7ac) has joined #tryton
2017-09-21 11:35 -!- meigallodixital_(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton
2017-09-21 11:39 <csotelo> cedk, What I am doing on a context is generate an array of arrays, sopmething like [invoices_array[i:i + 5] for i in xrange(0, len(invoices_array), 5)], where invoices_array is an array of n invoice numbers, then I need to show then on a table. If my array lenght is 5 o 10 or 15.. or any related number to 5 multiple, it works ok, but when it is not a 5 multiple number, the give a index out of range. My code on report is "<for
2017-09-21 11:39 <csotelo> each="invoice in invoices_array"><invoice[0] or None>...<invoice[4] or None></for>"
2017-09-21 11:40 <csotelo> I am using that on a formated table, and I am looking to prevent error on out of index. I was using "or None" but it is no working on my code. I ma using Tryton 3.8
2017-09-21 11:41 <csotelo> complete line of code : invoices_array = [invoices_array[i:i + 5] for i in xrange(0, len(invoices_array), 5)]
2017-09-21 11:42 <pokoli> csotelo it's because you are slicing the array by multiples of 5
2017-09-21 11:42 <csotelo> pokoli, yes, of course
2017-09-21 11:43 <csotelo> that is the reaso on looking for how to prevent error when an index on an array doesnt exists
2017-09-21 11:44 <csotelo> for example, I have myarray[4], but index doesnt exists, on python is just "if myarray[4]:" I I just done "array[4] or None", but doesnt work
2017-09-21 11:45 <pokoli> csotelo: sorry but don't understand what are you doing with arrays
2017-09-21 11:46 <csotelo> pokoli, I am iteting this array on a report, and I want to prevent any error when an index doesnt exists,
2017-09-21 11:47 <csotelo> iterating*
2017-09-21 11:48 <pokoli> csotelo: so just iterate one by one
2017-09-21 11:49 <cedk> by the way, it is not array but list in Python
2017-09-21 11:52 <csotelo> cedk, you are right, sorry
2017-09-21 12:37 -!- jim__(0116a082@gateway/web/freenode/ip.1.22.160.130) has joined #tryton
2017-09-21 12:37 <jim__> How to get all sales details of opportunity module in single request?
2017-09-21 12:38 <jim__> rightnow, it just returning array of sales ids
2017-09-21 12:40 <jim__> shouild I make multiple request for each id or is there any other option?
2017-09-21 12:51 <cedk> jim__: you can use search_read method
2017-09-21 12:54 <jim__> cedk: I am using same method, But my question is can't I get array of all details of sales instead of just array of sales id in opportunity module?
2017-09-21 13:01 <cedk> jim__: don't understand, why are you talking about module?
2017-09-21 13:05 <jim__> cedk: check this https://pastebin.com/c5h8suxV
2017-09-21 13:07 <cedk> jim__: yes, you must make a second call to read all sales
2017-09-21 13:08 <jim__> second call for each sale id?
2017-09-21 13:11 <cedk> jim__: read take a list of ids
2017-09-21 13:12 <jim__> oh, yes I remembered it now , Thanks for your help!
2017-09-21 13:13 -!- mariomop(~quassel@host244.181-1-160.telecom.net.ar) has joined #tryton
2017-09-21 13:26 <mrichez> hi need some help on form_relate... i've added a new origin on a move, now i would like to find all moves with this specific origin using a form relate but the relate option never displays... here's my module : https://bitbucket.org/saluc/printer/src
2017-09-21 13:38 <cedk> mrichez: are you in the group printer_admin?
2017-09-21 13:39 <mrichez> cedk: yes, i'm using admin user
2017-09-21 13:42 <cedk> mrichez: it does not mean that you are in the group if you did not explicitly put it
2017-09-21 13:45 <mrichez> cedk: done, line 9 in printer.xml
2017-09-21 13:53 <cedk> mrichez: did you logout/login to clear client cache?
2017-09-21 13:58 <mrichez> cedk: yes, and updated module with trytond-admin
2017-09-21 13:59 <pokoli> mrichez: can you check thea ction is on ir.action.act_window and it has the related keyword from the client?
2017-09-21 14:02 <mrichez> pokoli: ? Define ir.action.act_window line 86 - https://bitbucket.org/saluc/printer/src/79a08b9b712e04277431a25af2b249ca06d0af7d/printer.xml?at=default&fileviewer=file-view-default
2017-09-21 14:03 <pokoli> mrichez: but it's correctly updated on the database?
2017-09-21 14:03 <mrichez> pokoli: will check
2017-09-21 14:07 <mrichez> pokoli: seems not in database ???
2017-09-21 14:16 <mrichez> pokoli: sorry, my relate is there :-) wrong database
2017-09-21 14:16 <mrichez> cedk: sorry, my relate is there :-) wrong database
2017-09-21 14:17 <mrichez> my relate domain is not correct, but now i have the relate option :-)
2017-09-21 14:28 <pokoli> mrichez: the same happened to my so much times, that's why I usually check with the client if everything is on place :)
2017-09-21 14:40 <mrichez> pokoli: :-) i've many tests databases and names are similar... sorry for annoyance.. will check next time before posting
2017-09-21 14:40 <pokoli> mrichez: maybe time to clear the tests databases :P
2017-09-21 14:40 <mrichez> pokoli: indeed
2017-09-21 15:09 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2017-09-21 15:19 -!- mariomop(~quassel@host244.181-1-160.telecom.net.ar) has joined #tryton
2017-09-21 15:23 -!- Timitos(~kpreisler@tmo-081-13.customers.d1-online.com) has joined #tryton
2017-09-21 15:25 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2017-09-21 15:29 -!- csotelo_at_work(~csotelo@179.43.97.56) has joined #tryton
2017-09-21 15:40 -!- Puggy(~FASDFSF@unaffiliated/fasdfsf) has joined #tryton
2017-09-21 15:45 -!- kstenger(~karla@r190-133-124-166.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-09-21 15:46 -!- mariomop(~quassel@host244.181-1-160.telecom.net.ar) has joined #tryton
2017-09-21 15:55 -!- mariomop(~quassel@host244.181-1-160.telecom.net.ar) has joined #tryton
2017-09-21 17:11 -!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton
2017-09-21 17:46 -!- JosDzG(~Thunderbi@189.250.37.192) has joined #tryton
2017-09-21 17:49 <sisalp> cedk: you think that a self-signed certificate is less secure than let's encrypt ? and that non-ssl communication is safe because it implies that the user knows ?
2017-09-21 17:54 <cedk> sisalp: no
2017-09-21 19:21 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-09-21 19:55 -!- rpit(~rpit@2a02:908:e671:9f80:56ee:75ff:fe0d:d3c7) has joined #tryton
2017-09-21 22:01 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton
2017-09-21 22:08 -!- thaneor(~ldlc6@r179-25-163-209.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-09-21 22:12 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton
2017-09-21 22:14 <andrespoliti> hi, in tryton 4.0.5 the thousand separator is shown for desktop but not for Sao
2017-09-21 22:14 <andrespoliti> is there a fix for this?
2017-09-21 22:21 <cedk> andrespoliti: no
2017-09-21 22:25 <andrespoliti> any clues about where i should look to fix it?
2017-09-21 22:33 <cedk> andrespoliti: it would be in set_client/get_client of Float
2017-09-21 22:34 <cedk> andrespoliti: but we did not find good lib for the parsing/formatting
2017-09-21 23:49 -!- giesen(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton

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