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

chat.freenode.net #tryton log beginning Mon Jun 9 00:00:02 CEST 2014
-!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton01:12
-!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton02:30
-!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton03:18
-!- frispete(~frispete@p54A9121A.dip0.t-ipconnect.de) has joined #tryton06:40
-!- yangoon1(~mathiasb@p549F15DE.dip0.t-ipconnect.de) has joined #tryton07:01
-!- digitalsatori(~Thunderbi@180.173.127.4) has joined #tryton07:22
-!- rpit(~ralf@dslb-088-070-133-221.pools.arcor-ip.net) has joined #tryton07:50
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:13
-!- digitalsatori(~Thunderbi@116.234.156.9) has joined #tryton09:23
-!- digitalsatori(~Thunderbi@116.234.156.9) has joined #tryton10:33
-!- yangoon(~mathiasb@p549F15DE.dip0.t-ipconnect.de) has joined #tryton11:11
-!- mariomop(~quassel@host223.200-117-183.telecom.net.ar) has joined #tryton12:09
-!- asoleh(~asoleh@36.77.226.169) has joined #tryton12:21
-!- Telesight(~anthony@77-175-159-159.FTTH.ispfabriek.nl) has joined #tryton13:23
-!- kstenger(~karla@200.124.209.158) has joined #tryton13:39
-!- mar(~marius@v100.nfq.lt) has joined #tryton14:04
marhello ;)14:04
marhttp://pastebin.com/Usfm90tP14:06
marhow come Transation().user and Transaction().context['user'] gets lost? Is this ok?14:06
marbecause I need users and I'm unable to access it later in the stack14:06
mar*user14:06
cedkmar: if something change it14:09
marI think modelstorage .save() sets it to 014:10
marcan I get it "back" somehow?14:10
cedkmar: don't understand14:12
cedkmar: all user change is made with Transaction using a context manager which ensure it get set back to original value14:14
mari'm inside that transaction14:15
marand it double sets user as 014:15
marand I'm unable to access original user14:15
cedkmar: so don't set the user14:22
-!- rpit(~ralf@dslb-088-070-133-221.pools.arcor-ip.net) has joined #tryton14:22
mari don't but it gets lost in chain. Sale14:23
marCustomer 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 left14:23
cedkmar: it must be done as root because it is out of the scope the user14:24
cedkmar: I'm pretty sure if you need to user there, you are doing it wrong14:24
mari want to create account_move and it requires user in context to get company, to get default currency14:25
cedkmar: don't use the company of the context14:26
cedkmar: indeed you have to do nohting, the company will be set automatically14:26
marthis one fails14:27
marhttp://hg.tryton.org/trytond/trytond/modules/account/file/6d818e43f795/move.py#l33714:27
marbecause this is == 014:27
marhttp://hg.tryton.org/trytond/trytond/modules/account/file/6d818e43f795/move.py#l30414:27
cedkmar: fill an bug14:31
cedkmar: it should not use the company of the user but the company of the move14:33
mari think it's changed in new version of module :/14:35
cedkmar: no it is no14:36
marhttps://bugs.tryton.org/issue398014:40
marSo it should use Transction().context['company'] there?14:41
cedkmar: Tryton should be fixed14:43
maryeah but what the fix would be? I don't want to wait weeks for someone to fix it, I may do it mysqlf14:44
marmyself14:44
cedkmar: I don't know14:49
marhttp://hg.tryton.org/trytond/trytond/modules/account/diff/5b61530991e1/move.py14:54
marlooks like it used to use company from company = line.account.company14:55
-!- gremly(~gremly@190.85.36.58) has joined #tryton16:27
-!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton16:49
-!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton17:00
-!- smarro(~sebastian@63.143.95.88) has joined #tryton17:16
-!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton17:23
-!- naringas(~naringas@189.188.152.223) has joined #tryton17:58
-!- VickyDevecoop(bed26cf1@gateway/web/freenode/ip.190.210.108.241) has joined #tryton18:59
-!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton19:03
-!- Telesight(~anthony@77-175-159-159.FTTH.ispfabriek.nl) has joined #tryton19:29
-!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton20:14
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton20:16
-!- rpit(~ralf@dslb-088-070-133-221.pools.arcor-ip.net) has joined #tryton20:27
-!- odicha(~odicha@181.67.125.242) has joined #tryton20:56
-!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton21:00
-!- smarro(~sebastian@208.138.21.17) has joined #tryton21:03
-!- azi(~azi@50-0-169-56.dsl.dynamic.sonic.net) has joined #tryton23:05

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!