IRC logs of #tryton for Wednesday, 2018-02-14

chat.freenode.net #tryton log beginning Wed Feb 14 00:00:01 CET 2018
2018-02-14 00:17 -!- csotelo(~csotelo@179.7.43.146) has joined #tryton
2018-02-14 00:17 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2018-02-14 01:21 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2018-02-14 01:32 -!- csotelo(~csotelo@179.7.41.242) has joined #tryton
2018-02-14 02:05 -!- JosDzGx(~Thunderbi@189.195.156.226) has joined #tryton
2018-02-14 02:07 -!- JosDzGx1(~Thunderbi@189.195.156.226) has joined #tryton
2018-02-14 02:09 -!- JosDzG(~Thunderbi@189.195.156.226) has joined #tryton
2018-02-14 02:13 -!- JosDzGx(~Thunderbi@189.195.156.226) has joined #tryton
2018-02-14 02:27 -!- NeonKing(~Neonking@176.179.38.86) has joined #tryton
2018-02-14 02:28 -!- NeonKing(~Neonking@unaffiliated/neonking) has joined #tryton
2018-02-14 02:35 -!- thaneor(~ldlc6@r179-25-36-70.dialup.adsl.anteldata.net.uy) has joined #tryton
2018-02-14 04:56 -!- yangoon(~mathiasb@i59F4DD85.versanet.de) has joined #tryton
2018-02-14 06:44 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2018-02-14 07:08 -!- _2cadz(~2cadz@82.64.14.213) has joined #tryton
2018-02-14 08:46 -!- rpit(~rpit@p200300C88F1BB40056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton
2018-02-14 08:54 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2018-02-14 09:38 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2018-02-14 09:59 -!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton
2018-02-14 10:01 -!- rpit(~rpit@p200300C88F1BB40056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton
2018-02-14 10:03 -!- meigallodixital(~meigallod@162.200.26.77.dynamic.reverse-mundo-r.com) has joined #tryton
2018-02-14 10:05 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2018-02-14 10:32 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2018-02-14 11:56 -!- csotelo(~csotelo@179.7.47.202) has joined #tryton
2018-02-14 12:26 -!- mariomop(~quassel@186.153.81.67) has joined #tryton
2018-02-14 13:06 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2018-02-14 13:12 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2018-02-14 13:36 -!- andrespoliti(~andrespol@250-183-89-200.fibertel.com.ar) has joined #tryton
2018-02-14 13:37 <andrespoliti> hi, when we try to print a report, the whole .odt file is being logged in the tryton log. Is there a way of disabling this?
2018-02-14 13:47 <cedk> andrespoliti: by which logging call?
2018-02-14 13:48 <cedk> andrespoliti: maybe it is the debug answer logging
2018-02-14 13:48 <andrespoliti> DEBUG:trytond.protocols.dispatcher:Result: [{u'icon': u'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<!-- Created with Inkscape (http://www.inkscape.org/) -->\n<svg\n .....
2018-02-14 13:48 <cedk> if yes, then do not log with debug mode
2018-02-14 13:48 <andrespoliti> i think that's an icon though
2018-02-14 13:49 -!- meigallodixital_(~meigallod@172.94.112.59) has joined #tryton
2018-02-14 13:50 <cedk> andrespoliti: yes it is the answer send by the server to the client
2018-02-14 13:50 <cedk> debug mode is for this purpose: see what is happening exactly
2018-02-14 13:51 <cedk> you can also write custom logging rules: http://doc.tryton.org/4.6/trytond/doc/topics/logs.html
2018-02-14 13:56 <mrichez> hi, in proteus i'm testing translations on a product template... to display product name i'm using config._context['language'] = 'fr_FR'. But for saving a new product with 2 translation, i've to use config._context['language'] = 'fr' and it's working. Any explanation ? Should i do this another way ?
2018-02-14 13:57 <cedk> mrichez: it is language derivative
2018-02-14 13:58 <cedk> if you use fr_FR and there is no translations for fr_FR, it will look for fr
2018-02-14 13:59 <mrichez> cedk: so it's better to use fr ?
2018-02-14 13:59 <mrichez> cedk: got this error : xmlrpclib.Fault: <Fault 1: 'The value "fr_FR" of field "Language" on "Translation" is not in the selection. - '>
2018-02-14 14:00 <mrichez> cedk: here's the code of my test: https://pastebin.com/Vt1QK6wL
2018-02-14 14:00 <mrichez> cedk: i need to import products with their translations... so doing some tests before
2018-02-14 14:01 <cedk> mrichez: fr_FR does not exist by default, you have to create it if you want to use it
2018-02-14 14:03 <mrichez> cedk: ok, but there's something strange in my first method getProduct if i define config._context['language'] = 'fr_FR' and doing a find, it's working but if i set my context to 'fr', same search is not working
2018-02-14 14:16 -!- meigallodixital(~meigallod@162.200.26.77.dynamic.reverse-mundo-r.com) has joined #tryton
2018-02-14 14:17 -!- lukio(~lukio@host23.186-125-83.telecom.net.ar) has joined #tryton
2018-02-14 14:36 -!- thaneor1(~ldlc6@179.26.49.1) has joined #tryton
2018-02-14 14:40 <mrichez> cedk: ok i understand now, so setting my context fr, with my find operand should be in french... working. But when setting fr_FR i can do the find in english and what i'm displaying is in french.
2018-02-14 15:05 <cedk> mrichez: the find should be in french also
2018-02-14 15:08 <pokoli> mrichez: probably it's related to https://bugs.tryton.org/issue6934
2018-02-14 15:12 <mrichez> cedk: indeed, but find in english allowed with fr_FR, so probably related to pokoli's bug....
2018-02-14 15:12 <mrichez> pokoli: i think so :-)
2018-02-14 15:13 <mrichez> anyway, will definitely use 'fr' or 'en' so not really a bug for me
2018-02-14 15:15 <cedk> mrichez: please check if you have the fix or not
2018-02-14 15:15 <mrichez> could be a feature to add a translation to a multilingual field without using context ? a kind of field.set(value, language)
2018-02-14 15:18 <mrichez> cedk: not yet applied
2018-02-14 15:19 <mrichez> cedk: so probably linked
2018-02-14 15:20 <cedk> mrichez: I do not think because it creates an special path for a special field
2018-02-14 15:22 <mrichez> cedk: ok
2018-02-14 15:33 -!- lukio(~lukio@host23.186-125-83.telecom.net.ar) has joined #tryton
2018-02-14 16:29 -!- hedererjs(~hedererjs@dig50-1-78-222-206-45.fbx.proxad.net) has joined #tryton
2018-02-14 17:05 -!- lukio(~lukio@host23.186-125-83.telecom.net.ar) has joined #tryton
2018-02-14 17:34 -!- cdchapman(~perturbed@73.98.169.91) has joined #tryton
2018-02-14 17:57 -!- csotelo(~csotelo@179.7.47.202) has joined #tryton
2018-02-14 18:27 -!- JosDzG(~Thunderbi@189.195.156.226) has joined #tryton
2018-02-14 18:38 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2018-02-14 18:48 -!- robink(~quassel@unaffilated/robink) has joined #tryton
2018-02-14 19:28 -!- zmijunkie(~Adium@87.122.223.0) has joined #tryton
2018-02-14 20:50 -!- lukio(~lukio@host23.186-125-83.telecom.net.ar) has joined #tryton
2018-02-14 21:16 -!- mariomop_(~quassel@186.153.81.67) has joined #tryton
2018-02-14 21:27 -!- mariomop(~quassel@186.153.81.67) has joined #tryton
2018-02-14 21:59 -!- csotelo(~csotelo@179.7.48.18) has joined #tryton
2018-02-14 22:00 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton

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