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 #tryton22:05
-!- yangoon1(~mathiasb@i59F4BABE.versanet.de) has joined #tryton02:16
-!- cryptic(~cryptic@142.196.139.17) has joined #tryton04:30
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton06:09
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:33
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:43
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 ?06:53
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton07:23
cedkmrichez: you should not change _context manually but use a with statement07:24
cedkmrichez: and you must use a new instance of the record under the new context07:24
-!- sysadm(~sysadm@81-7-13-6.blue.kundencontroller.de) has joined #tryton07:30
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 created07:30
cedkmrichez: yeps or Product(product_id)07:32
mrichezcedk: thanks!07:33
-!- sysadm(~sysadm@81-7-13-6.blue.kundencontroller.de) has left #tryton07:35
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton07:39
-!- udono(~udono@070-058-210-188.ip-addr.inexio.net) has joined #tryton07:40
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton09:25
-!- kefas(~kefas@202.146.3.4) has joined #tryton09:41
-!- rpit(~rpit@p4FFB7CA1.dip0.t-ipconnect.de) has joined #tryton10:59
-!- kefas(~kefas@125.208.135.28) has joined #tryton11:03
-!- mariomop(~quassel@181.90.110.168) has joined #tryton11:24
-!- udono1(~udono@070-058-210-188.ip-addr.inexio.net) has joined #tryton12:02
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton12:33
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton19:37
-!- rpit(~rpit@ip5f5aef98.dynamic.kabel-deutschland.de) has joined #tryton19:51
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton20:01
-!- csotelo(~csotelo@190.239.195.43) has joined #tryton20:28
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton20:36
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:42

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