IRC logs of #tryton for Thursday, 2016-11-03

chat.freenode.net #tryton log beginning Thu Nov 3 00:00:01 CET 2016
2016-11-03 00:53 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2016-11-03 01:19 -!- drl(~drl@125.162.192.95) has joined #tryton
2016-11-03 01:56 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-11-03 01:57 -!- leio(~leio@gentoo/developer/leio) has joined #tryton
2016-11-03 03:24 -!- morfeokmg(~smuxi@189.146.53.244) has joined #tryton
2016-11-03 03:26 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-11-03 04:28 -!- thaneor1(~ldlc6@r167-56-209-58.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-11-03 07:30 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2016-11-03 08:13 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2016-11-03 08:38 -!- morfeokmg(~smuxi@189.146.53.244) has joined #tryton
2016-11-03 09:04 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-11-03 09:20 -!- rpit(~rpit@aftr-37-24-150-240.unity-media.net) has joined #tryton
2016-11-03 09:46 -!- thaneor(~ldlc6@r167-56-209-58.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-11-03 10:08 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-11-03 10:21 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2016-11-03 12:00 -!- hebr(~hbrandes@89.106.223.234) has joined #tryton
2016-11-03 12:52 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-11-03 12:55 <dj_xatra> Something's wrong with my module's top level xml file. I see the menu items in the client, but nothing happens when I click on them. How do I debug that?
2016-11-03 12:57 <pokoli> dj_xatra: you probabilly don't have any action related with the menu item
2016-11-03 12:57 <pokoli> Is there any problem with the translation server? I'm getting a lot of "Server Error" messages
2016-11-03 12:57 <pokoli> For example, with this URL: http://pootle.tryton.org/ca/tryton/translate/#search=Create%20User&sfields=source&soptions=exact
2016-11-03 13:00 <dj_xatra> pokoli: looks ok to me: http://dpaste.com/07MM2R8
2016-11-03 13:01 <cedk> pokoli: works for me
2016-11-03 13:02 <pokoli> cedk: BTW it works now, but when I start chaning translations I get the errors. So maybe I'm causing and high load on the server
2016-11-03 13:03 <pokoli> dj_xatra: it looks good to me also, but it's easier to read if you group the act_window with their views definition. At least is what I'm used to read
2016-11-03 13:04 <pokoli> dj_xatra: have you tryied reseting the server and the client to ensure you are not affected by some cache?
2016-11-03 13:05 <pokoli> cedk: BTW it's failing now, so If i wait a little bit I bet it will work well
2016-11-03 13:06 <dj_xatra> pokoli: I wrote this yesterday and rebooted my machine since then, so server and client have been restarted.
2016-11-03 13:09 <pokoli> dj_xatra: and are you sure you have updated your database?
2016-11-03 13:09 <pokoli> dj_xatra: could you check on the administration -> User Interface -> Actions and Menus options that everything is correctly set?
2016-11-03 13:11 <dj_xatra> Ah, I didn't yet know about that form. Interesting.
2016-11-03 13:12 <dj_xatra> Hm, action is not filled for both menu items.
2016-11-03 13:17 <cedk> dj_xatra: on DB update, you should look at warning message
2016-11-03 13:17 <cedk> dj_xatra: maybe trytond does not update a record
2016-11-03 13:17 <cedk> dj_xatra: in this case you can force the update in Administration>Models>Models>Data
2016-11-03 13:19 <cedk> pokoli: it is Django app so not the best framework
2016-11-03 13:20 <dj_xatra> cedk: it says that my ir.ui.menu and ir.action.act_window.view resources are out of syn. When I click sync it says "you are not allowed to modify this record. This record is part of the base configuration."
2016-11-03 13:20 <cedk> pokoli: I receive error messages about "OOM command not allowed when used memory > 'maxmemory'"
2016-11-03 13:20 <pokoli> cedk: so maybe we should increase the maxmemory?
2016-11-03 13:21 <cedk> dj_xatra: this is probably because you modify the XML data in a way that trytond did not recognized
2016-11-03 13:21 <cedk> dj_xatra: you can delete in SQL the records and rerun a database update
2016-11-03 13:21 <cedk> pokoli: but where?
2016-11-03 13:22 <pokoli> cedk: it seems it is a redis issue: https://github.com/antirez/redis/issues/2746
2016-11-03 13:22 <pokoli> dj_xatra: I usually comment the xml records, update the module -> so they are deleted and the uncomment to recreate them
2016-11-03 13:23 <dj_xatra> pokoli: so an xml like <tryton><data/></tryton> would delete the records?
2016-11-03 13:23 <pokoli> dj_xatra: I think so
2016-11-03 13:24 <dj_xatra> cool
2016-11-03 13:25 <dj_xatra> Indeed it did.
2016-11-03 13:26 <dj_xatra> Yay, it's working again. Thanks.
2016-11-03 13:34 <cedk> pokoli: pootle should be fixed
2016-11-03 13:42 <pokoli> cedk: is working now, thanks!
2016-11-03 14:12 -!- udono(~udono@tmo-112-121.customers.d1-online.com) has joined #tryton
2016-11-03 14:27 -!- morfeokmg(~smuxi@189.146.53.244) has joined #tryton
2016-11-03 14:43 <postal_blab> when i try to print something, doesn't matter what, trytond run into this: http://dpaste.com/3XY2RE0
2016-11-03 14:43 -!- mariomop(~quassel@host24.190-30-186.telecom.net.ar) has joined #tryton
2016-11-03 14:55 -!- kstenger(~karla@r179-24-187-10.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-11-03 14:55 <cedk> postal_blab: please report a bug with precise versions etc.
2016-11-03 14:59 <cedk> postal_blab: also are you on the latest version?
2016-11-03 14:59 -!- meigallodixital_(~meigallod@172.94.112.5) has joined #tryton
2016-11-03 15:00 <postal_blab> yes, 4.0.4
2016-11-03 15:03 <postal_blab> oh i oversee that the error comes from simplejson. going to install the latest simplejson version
2016-11-03 15:05 <cedk> postal_blab: what is the request?
2016-11-03 15:10 -!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton
2016-11-03 15:14 <postal_blab> http://dpaste.com/0HDXAC6
2016-11-03 15:14 -!- meigallodixital_(~meigallod@172.94.112.29) has joined #tryton
2016-11-03 15:16 <cedk> postal_blab: this is not a printing/report call but reading the report content
2016-11-03 15:18 <postal_blab> yes. this was the easiest way to reproduce it. printing request is this one: http://dpaste.com/0N8TFSS
2016-11-03 15:18 <giovanni1> postal_blab: cedk: Maybe there was a database error that was raised and included utf-8 characters (I had it once in French)
2016-11-03 15:20 <postal_blab> i don't think so. the byte which raises this exception comes from the odt file
2016-11-03 15:21 <postal_blab> this is the response {'result': [{'report_content': b'PK\x03\x04\x14\x00\x00\x08\x00\x00g\x86\BLABLA MORE BINARY STUFF', 'id': 169}], 'id': 4}
2016-11-03 15:23 -!- csotelo_at_work(~csotelo@179.43.97.40) has joined #tryton
2016-11-03 15:25 <cedk> postal_blab: it looks like simplejson does not use our JSONEncoder class
2016-11-03 15:28 -!- Pijuli(~marc@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton
2016-11-03 15:28 -!- afibanez(~afibanez@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton
2016-11-03 15:29 -!- Pijuli(~marc@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton
2016-11-03 15:31 -!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton
2016-11-03 15:31 <postal_blab> that's weird
2016-11-03 16:00 <cedk> postal_blab: I can confirm the problem is simplejson, without there is no problem
2016-11-03 16:08 <udono> hi, on invoice, when I use english as the lang of the user, translations are shown correct in the language of the used party in the invoice report. When I use German as user lang, the report is not translated in the language of the party. Is this a known issue/feature of tryton default?
2016-11-03 16:12 <pokoli> udono: AFAIK it should be shown in the party lang, but make sure you have the report translations otherwise it will always shown in english
2016-11-03 16:20 <cedk> postal_blab: I checked simplejson is not compatible in Python3 with json
2016-11-03 16:21 <cedk> postal_blab: indeed simplejson is useless in Python3 because json has the same improvement
2016-11-03 16:27 -!- JosDzG(~Thunderbi@189.250.3.127) has joined #tryton
2016-11-03 16:30 -!- thaneor1(~ldlc6@r167-56-208-53.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-11-03 16:32 <postal_blab> thats good(?) news
2016-11-03 16:36 <udono> pokoli: Yes, I checked this. The problem is: When I use German as user language, the report is _not_ translated in English, which is the language of the party. The report is translated in German.
2016-11-03 16:37 <udono> pokoli: I don't know if it is related, but my trytond.conf section database option language = de_DE…
2016-11-03 16:38 <cedk> postal_blab: FYI: https://bugs.tryton.org/issue6010
2016-11-03 16:49 <cedk> udono: are you using the standard template?
2016-11-03 16:50 <cedk> udono: and on which version?
2016-11-03 17:06 -!- JanGB(~jan@89.204.139.128) has joined #tryton
2016-11-03 17:07 <udono> cedk: yes, standard template, and default (trunc, dev) version
2016-11-03 17:11 -!- kstenger1(~karla@r186-50-17-13.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-11-03 17:12 <cedk> udono: is English a translatable language?
2016-11-03 17:16 <udono> cedk: yes both english and German are translatable
2016-11-03 17:24 <cedk> udono: are you sure set_language is called with the right code?
2016-11-03 17:27 <udono> cedk: no, not sure, but I use the upstream codebase and reports from hg.tryton.org
2016-11-03 17:28 <cedk> udono: maybe it is https://bugs.tryton.org/issue6011
2016-11-03 17:28 <udono> cedk: you can not reproduce the issue?
2016-11-03 17:28 <cedk> udono: did not tried
2016-11-03 17:29 <udono> ok
2016-11-03 17:29 <udono> https://bugs.tryton.org/issue6011 looks different, when I use english as the lang of the user, translations are shown correct in German the language of the used party in the invoice report.
2016-11-03 17:30 <udono> The problem is when I use German as user language, the report is _not_ translated in English, which is the language of the party. The report is translated in German.
2016-11-03 17:30 <udono> cedk: so it seems not a fallback problem.
2016-11-03 17:32 <cedk> udono: for me, set_language is not called with the code you think it is
2016-11-03 17:58 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-11-03 19:08 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-11-03 19:54 -!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has joined #tryton
2016-11-03 20:17 <morfeokmg> hello guys
2016-11-03 20:17 <morfeokmg> exist some complete example for develop a new module for tryton?
2016-11-03 20:17 <kstenger> morfeokmg: try the training module at http://hg.tryton.org/ the usage for it is detailed in the description of the repository
2016-11-03 20:17 <kstenger> morfeokmg: otherwise, look at any other module for examples etc
2016-11-03 20:18 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2016-11-03 20:19 <morfeokmg> ok, thanks!
2016-11-03 20:29 <cedk> morfeokmg: and there is this presentation to follow the training module: http://downloads.tryton.org/TUL2014/crash-course.pdf
2016-11-03 21:43 -!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has joined #tryton
2016-11-03 21:43 <morfeokmg> thanks cedk, this is one great documentation. I reading this one.
2016-11-03 21:53 -!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has left #tryton
2016-11-03 22:35 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2016-11-03 23:02 -!- robink(~quassel@fatcat.creosotehill.org) has joined #tryton
2016-11-03 23:02 -!- robink(~quassel@unaffilated/robink) has joined #tryton
2016-11-03 23:12 -!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has joined #tryton
2016-11-03 23:39 -!- rpit(~rpit@2a02:908:e672:1520:d2d:547f:731d:6424) has joined #tryton

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