IRC logs of #tryton for Monday, 2014-06-09

chat.freenode.net #tryton log beginning Mon Jun 9 00:00:02 CEST 2014
2014-06-09 01:12 -!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton
2014-06-09 02:30 -!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton
2014-06-09 03:18 -!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton
2014-06-09 06:40 -!- frispete(~frispete@p54A9121A.dip0.t-ipconnect.de) has joined #tryton
2014-06-09 07:01 -!- yangoon1(~mathiasb@p549F15DE.dip0.t-ipconnect.de) has joined #tryton
2014-06-09 07:22 -!- digitalsatori(~Thunderbi@180.173.127.4) has joined #tryton
2014-06-09 07:50 -!- rpit(~ralf@dslb-088-070-133-221.pools.arcor-ip.net) has joined #tryton
2014-06-09 09:13 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2014-06-09 09:23 -!- digitalsatori(~Thunderbi@116.234.156.9) has joined #tryton
2014-06-09 10:33 -!- digitalsatori(~Thunderbi@116.234.156.9) has joined #tryton
2014-06-09 11:11 -!- yangoon(~mathiasb@p549F15DE.dip0.t-ipconnect.de) has joined #tryton
2014-06-09 12:09 -!- mariomop(~quassel@host223.200-117-183.telecom.net.ar) has joined #tryton
2014-06-09 12:21 -!- asoleh(~asoleh@36.77.226.169) has joined #tryton
2014-06-09 13:23 -!- Telesight(~anthony@77-175-159-159.FTTH.ispfabriek.nl) has joined #tryton
2014-06-09 13:39 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2014-06-09 14:04 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2014-06-09 14:04 <mar> hello ;)
2014-06-09 14:06 <mar> http://pastebin.com/Usfm90tP
2014-06-09 14:06 <mar> how come Transation().user and Transaction().context['user'] gets lost? Is this ok?
2014-06-09 14:06 <mar> because I need users and I'm unable to access it later in the stack
2014-06-09 14:06 <mar> *user
2014-06-09 14:09 <cedk> mar: if something change it
2014-06-09 14:10 <mar> I think modelstorage .save() sets it to 0
2014-06-09 14:10 <mar> can I get it "back" somehow?
2014-06-09 14:12 <cedk> mar: don't understand
2014-06-09 14:14 <cedk> mar: all user change is made with Transaction using a context manager which ensure it get set back to original value
2014-06-09 14:15 <mar> i'm inside that transaction
2014-06-09 14:15 <mar> and it double sets user as 0
2014-06-09 14:15 <mar> and I'm unable to access original user
2014-06-09 14:22 <cedk> mar: so don't set the user
2014-06-09 14:22 -!- rpit(~ralf@dslb-088-070-133-221.pools.arcor-ip.net) has joined #tryton
2014-06-09 14:23 <mar> i don't but it gets lost in chain. Sale
2014-06-09 14:23 <mar> Customer shipment sets move state as done, creates invoice and I want to do another action after that, but I don't have user there in context left
2014-06-09 14:24 <cedk> mar: it must be done as root because it is out of the scope the user
2014-06-09 14:24 <cedk> mar: I'm pretty sure if you need to user there, you are doing it wrong
2014-06-09 14:25 <mar> i want to create account_move and it requires user in context to get company, to get default currency
2014-06-09 14:26 <cedk> mar: don't use the company of the context
2014-06-09 14:26 <cedk> mar: indeed you have to do nohting, the company will be set automatically
2014-06-09 14:27 <mar> this one fails
2014-06-09 14:27 <mar> http://hg.tryton.org/trytond/trytond/modules/account/file/6d818e43f795/move.py#l337
2014-06-09 14:27 <mar> because this is == 0
2014-06-09 14:27 <mar> http://hg.tryton.org/trytond/trytond/modules/account/file/6d818e43f795/move.py#l304
2014-06-09 14:31 <cedk> mar: fill an bug
2014-06-09 14:33 <cedk> mar: it should not use the company of the user but the company of the move
2014-06-09 14:35 <mar> i think it's changed in new version of module :/
2014-06-09 14:36 <cedk> mar: no it is no
2014-06-09 14:40 <mar> https://bugs.tryton.org/issue3980
2014-06-09 14:41 <mar> So it should use Transction().context['company'] there?
2014-06-09 14:43 <cedk> mar: Tryton should be fixed
2014-06-09 14:44 <mar> yeah but what the fix would be? I don't want to wait weeks for someone to fix it, I may do it mysqlf
2014-06-09 14:44 <mar> myself
2014-06-09 14:49 <cedk> mar: I don't know
2014-06-09 14:54 <mar> http://hg.tryton.org/trytond/trytond/modules/account/diff/5b61530991e1/move.py
2014-06-09 14:55 <mar> looks like it used to use company from company = line.account.company
2014-06-09 16:27 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2014-06-09 16:49 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton
2014-06-09 17:00 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-06-09 17:16 -!- smarro(~sebastian@63.143.95.88) has joined #tryton
2014-06-09 17:23 -!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton
2014-06-09 17:58 -!- naringas(~naringas@189.188.152.223) has joined #tryton
2014-06-09 18:59 -!- VickyDevecoop(bed26cf1@gateway/web/freenode/ip.190.210.108.241) has joined #tryton
2014-06-09 19:03 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-06-09 19:29 -!- Telesight(~anthony@77-175-159-159.FTTH.ispfabriek.nl) has joined #tryton
2014-06-09 20:14 -!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton
2014-06-09 20:16 -!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton
2014-06-09 20:27 -!- rpit(~ralf@dslb-088-070-133-221.pools.arcor-ip.net) has joined #tryton
2014-06-09 20:56 -!- odicha(~odicha@181.67.125.242) has joined #tryton
2014-06-09 21:00 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-06-09 21:03 -!- smarro(~sebastian@208.138.21.17) has joined #tryton
2014-06-09 23:05 -!- azi(~azi@50-0-169-56.dsl.dynamic.sonic.net) has joined #tryton

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