IRC logs of #tryton for Wednesday, 2019-09-18

chat.freenode.net #tryton log beginning Wed 18 Sep 2019 12:00:01 AM CEST
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:09
-!- yangoon1(~mathiasb@i59F4BABE.versanet.de) has joined #tryton04:09
-!- cryptic(~cryptic@142.196.139.17) has joined #tryton06:09
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton08:09
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:09
mrichezhi, in proteus i try to import product in new database. So with the script i activate product module, and set translation true for languages french and english. Then  i import my product : first with an english name, then i switch to french with config._context['language'] = 'fr' to set the name in french... when doing this my english name is updated in french. Am i missing something in the process ?08:09
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton09:09
cedkmrichez: you should not change _context manually but use a with statement09:09
cedkmrichez: and you must use a new instance of the record under the new context09:09
-!- sysadm(~sysadm@81-7-13-6.blue.kundencontroller.de) has joined #tryton09:09
mrichezcedk: Something like this:  "with config.get_config().set_context(language='fr'): " and then i have to do a Product.find(... ) on the record previously created09:09
cedkmrichez: yeps or Product(product_id)09:09
mrichezcedk: thanks!09:09
-!- sysadm(~sysadm@81-7-13-6.blue.kundencontroller.de) has left #tryton09:09
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton09:09
-!- udono(~udono@070-058-210-188.ip-addr.inexio.net) has joined #tryton09:09
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton11:09
-!- kefas(~kefas@202.146.3.4) has joined #tryton11:09
-!- rpit(~rpit@p4FFB7CA1.dip0.t-ipconnect.de) has joined #tryton12:09
-!- kefas(~kefas@125.208.135.28) has joined #tryton13:09
-!- mariomop(~quassel@181.90.110.168) has joined #tryton13:09
-!- udono1(~udono@070-058-210-188.ip-addr.inexio.net) has joined #tryton14:09
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton14:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:09
-!- rpit(~rpit@ip5f5aef98.dynamic.kabel-deutschland.de) has joined #tryton21:09
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:09
-!- csotelo(~csotelo@190.239.195.43) has joined #tryton22:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:09

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