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

chat.freenode.net #tryton log beginning Thu Nov 3 00:00:01 CET 2016
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton00:53
-!- drl(~drl@125.162.192.95) has joined #tryton01:19
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:56
-!- leio(~leio@gentoo/developer/leio) has joined #tryton01:57
-!- morfeokmg(~smuxi@189.146.53.244) has joined #tryton03:24
-!- smarro(~sebastian@181.16.7.104) has joined #tryton03:26
-!- thaneor1(~ldlc6@r167-56-209-58.dialup.adsl.anteldata.net.uy) has joined #tryton04:28
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton07:30
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:13
-!- morfeokmg(~smuxi@189.146.53.244) has joined #tryton08:38
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton09:04
-!- rpit(~rpit@aftr-37-24-150-240.unity-media.net) has joined #tryton09:20
-!- thaneor(~ldlc6@r167-56-209-58.dialup.adsl.anteldata.net.uy) has joined #tryton09:46
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:08
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:21
-!- hebr(~hbrandes@89.106.223.234) has joined #tryton12:00
-!- smarro(~sebastian@181.16.7.104) has joined #tryton12:52
dj_xatraSomething'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?12:55
pokolidj_xatra: you probabilly don't have any action related with the menu item12:57
pokoliIs there any problem with the translation server? I'm getting a lot of "Server Error" messages12:57
pokoliFor example, with this URL: http://pootle.tryton.org/ca/tryton/translate/#search=Create%20User&sfields=source&soptions=exact12:57
dj_xatrapokoli: looks ok to me: http://dpaste.com/07MM2R813:00
cedkpokoli: works for me13:01
pokolicedk: BTW it works now, but when I start chaning translations I get the errors. So maybe I'm causing and high load on the server13:02
pokolidj_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 read13:03
pokolidj_xatra: have you tryied reseting the server and the client to ensure you are not affected by some cache?13:04
pokolicedk: BTW it's failing now, so If i wait a little bit I bet it will work well13:05
dj_xatrapokoli: I wrote this yesterday and rebooted my machine since then, so server and client have been restarted.13:06
pokolidj_xatra: and are you sure you have updated your database?13:09
pokolidj_xatra: could you check on the administration -> User Interface -> Actions and Menus options that everything is correctly set?13:09
dj_xatraAh, I didn't yet know about that form. Interesting.13:11
dj_xatraHm, action is not filled for both menu items.13:12
cedkdj_xatra: on DB update, you should look at warning message13:17
cedkdj_xatra: maybe trytond does not update a record13:17
cedkdj_xatra: in this case you can force the update in Administration>Models>Models>Data13:17
cedkpokoli: it is Django app so not the best framework13:19
dj_xatracedk: 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."13:20
cedkpokoli: I receive error messages about "OOM command not allowed when used memory > 'maxmemory'"13:20
pokolicedk: so maybe we should increase the maxmemory?13:20
cedkdj_xatra: this is probably because you modify the XML data in a way that trytond did not recognized13:21
cedkdj_xatra: you can delete in SQL the records and rerun a database update13:21
cedkpokoli: but where?13:21
pokolicedk: it seems it is a redis issue: https://github.com/antirez/redis/issues/274613:22
pokolidj_xatra: I usually comment the xml records, update the module -> so they are deleted and the uncomment to recreate them13:22
dj_xatrapokoli: so an xml like <tryton><data/></tryton> would delete the records?13:23
pokolidj_xatra: I think so13:23
dj_xatracool13:24
dj_xatraIndeed it did.13:25
dj_xatraYay, it's working again. Thanks.13:26
cedkpokoli: pootle should be fixed13:34
pokolicedk: is working now, thanks!13:42
-!- udono(~udono@tmo-112-121.customers.d1-online.com) has joined #tryton14:12
-!- morfeokmg(~smuxi@189.146.53.244) has joined #tryton14:27
postal_blabwhen i try to print something, doesn't matter what, trytond run into this: http://dpaste.com/3XY2RE014:43
-!- mariomop(~quassel@host24.190-30-186.telecom.net.ar) has joined #tryton14:43
-!- kstenger(~karla@r179-24-187-10.dialup.adsl.anteldata.net.uy) has joined #tryton14:55
cedkpostal_blab: please report a bug with precise versions etc.14:55
cedkpostal_blab: also are you on the latest version?14:59
-!- meigallodixital_(~meigallod@172.94.112.5) has joined #tryton14:59
postal_blabyes, 4.0.415:00
postal_blaboh i oversee that the error comes from simplejson. going to install the latest simplejson version15:03
cedkpostal_blab: what is the request?15:05
-!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton15:10
postal_blabhttp://dpaste.com/0HDXAC615:14
-!- meigallodixital_(~meigallod@172.94.112.29) has joined #tryton15:14
cedkpostal_blab: this is not a printing/report call but reading the report content15:16
postal_blabyes. this was the easiest way to reproduce it. printing request is this one: http://dpaste.com/0N8TFSS15:18
giovanni1postal_blab: cedk: Maybe there was a database error that was raised and included utf-8 characters (I had it once in French)15:18
postal_blabi don't think so. the byte which raises this exception comes from the odt file15:20
postal_blabthis 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}15:21
-!- csotelo_at_work(~csotelo@179.43.97.40) has joined #tryton15:23
cedkpostal_blab: it looks like simplejson does not use our JSONEncoder class15:25
-!- Pijuli(~marc@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton15:28
-!- afibanez(~afibanez@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton15:28
-!- Pijuli(~marc@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton15:29
-!- meigallodixital(~meigallod@249.135.116.91.static.reverse-mundo-r.com) has joined #tryton15:31
postal_blabthat's weird15:31
cedkpostal_blab: I can confirm the problem is simplejson, without there is no problem16:00
udonohi, 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?16:08
pokoliudono: AFAIK it should be shown in the party lang, but make sure you have the report translations otherwise it will always shown in english16:12
cedkpostal_blab: I checked simplejson is not compatible in Python3 with json16:20
cedkpostal_blab: indeed simplejson is useless in Python3 because json has the same improvement16:21
-!- JosDzG(~Thunderbi@189.250.3.127) has joined #tryton16:27
-!- thaneor1(~ldlc6@r167-56-208-53.dialup.adsl.anteldata.net.uy) has joined #tryton16:30
postal_blabthats good(?) news16:32
udonopokoli: 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.16:36
udonopokoli: I don't know if it is related, but my trytond.conf section database option language = de_DE…16:37
cedkpostal_blab: FYI: https://bugs.tryton.org/issue601016:38
cedkudono: are you using the standard template?16:49
cedkudono: and on which version?16:50
-!- JanGB(~jan@89.204.139.128) has joined #tryton17:06
udonocedk: yes, standard template, and default (trunc, dev) version17:07
-!- kstenger1(~karla@r186-50-17-13.dialup.adsl.anteldata.net.uy) has joined #tryton17:11
cedkudono: is English a translatable language?17:12
udonocedk: yes both english and German are translatable17:16
cedkudono: are you sure set_language is called with the right code?17:24
udonocedk: no, not sure, but I use the upstream codebase and reports from hg.tryton.org17:27
cedkudono: maybe it is https://bugs.tryton.org/issue601117:28
udonocedk: you can not reproduce the issue?17:28
cedkudono: did not tried17:28
udonook17:29
udonohttps://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.17:29
udonoThe 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.17:30
udonocedk: so it seems not a fallback problem.17:30
cedkudono: for me, set_language is not called with the code you think it is17:32
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton17:58
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton19:08
-!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has joined #tryton19:54
morfeokmghello guys20:17
morfeokmgexist some complete example for develop a new module for tryton?20:17
kstengermorfeokmg: try the training module at http://hg.tryton.org/ the usage for it is detailed in the description of the repository20:17
kstengermorfeokmg: otherwise, look at any other module for examples etc20:17
-!- smarro(~sebastian@181.16.7.104) has joined #tryton20:18
morfeokmgok, thanks!20:19
cedkmorfeokmg: and there is this presentation to follow the training module: http://downloads.tryton.org/TUL2014/crash-course.pdf20:29
-!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has joined #tryton21:43
morfeokmgthanks cedk, this is one great documentation. I reading this one.21:43
-!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has left #tryton21:53
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton22:35
-!- robink(~quassel@fatcat.creosotehill.org) has joined #tryton23:02
-!- robink(~quassel@unaffilated/robink) has joined #tryton23:02
-!- JanGB(~jan@ipservice-092-216-122-042.092.216.pools.vodafone-ip.de) has joined #tryton23:12
-!- rpit(~rpit@2a02:908:e672:1520:d2d:547f:731d:6424) has joined #tryton23:39

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