chat.freenode.net #tryton log beginning Wed 18 Sep 2019 12:00:01 AM CEST | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:05 | |
-!- yangoon1(~mathiasb@i59F4BABE.versanet.de) has joined #tryton | 02:16 | |
-!- cryptic(~cryptic@142.196.139.17) has joined #tryton | 04:30 | |
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton | 06:09 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:33 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:43 | |
mrichez | hi, 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 #tryton | 07:23 | |
cedk | mrichez: you should not change _context manually but use a with statement | 07:24 |
cedk | mrichez: and you must use a new instance of the record under the new context | 07:24 |
-!- sysadm(~sysadm@81-7-13-6.blue.kundencontroller.de) has joined #tryton | 07:30 | |
mrichez | cedk: Something like this: "with config.get_config().set_context(language='fr'): " and then i have to do a Product.find(... ) on the record previously created | 07:30 |
cedk | mrichez: yeps or Product(product_id) | 07:32 |
mrichez | cedk: thanks! | 07:33 |
-!- sysadm(~sysadm@81-7-13-6.blue.kundencontroller.de) has left #tryton | 07:35 | |
-!- nicoe(~nicoe@2a02:2788:54:5a3:7e2a:31ff:fe5e:b25d) has joined #tryton | 07:39 | |
-!- udono(~udono@070-058-210-188.ip-addr.inexio.net) has joined #tryton | 07:40 | |
-!- rpit(~rpit@p200300C88F1AFC00E5271953866667B8.dip0.t-ipconnect.de) has joined #tryton | 09:25 | |
-!- kefas(~kefas@202.146.3.4) has joined #tryton | 09:41 | |
-!- rpit(~rpit@p4FFB7CA1.dip0.t-ipconnect.de) has joined #tryton | 10:59 | |
-!- kefas(~kefas@125.208.135.28) has joined #tryton | 11:03 | |
-!- mariomop(~quassel@181.90.110.168) has joined #tryton | 11:24 | |
-!- udono1(~udono@070-058-210-188.ip-addr.inexio.net) has joined #tryton | 12:02 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 12:33 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 19:37 | |
-!- rpit(~rpit@ip5f5aef98.dynamic.kabel-deutschland.de) has joined #tryton | 19:51 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 20:01 | |
-!- csotelo(~csotelo@190.239.195.43) has joined #tryton | 20:28 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 20:36 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:42 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!