IRC logs of #tryton for Wednesday, 2014-04-30

chat.freenode.net #tryton log beginning Wed Apr 30 00:00:01 CEST 2014
2014-04-30 00:06 -!- cjbarnes18(~craig@host109-157-158-41.range109-157.btcentralplus.com) has joined #tryton
2014-04-30 04:12 -!- digitalsatori(~Thunderbi@114.94.143.109) has joined #tryton
2014-04-30 06:25 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2014-04-30 06:27 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-30 06:41 -!- frispete_(~frispete@p54A93286.dip0.t-ipconnect.de) has joined #tryton
2014-04-30 06:43 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2014-04-30 07:01 -!- yangoon(~mathiasb@p549F3889.dip0.t-ipconnect.de) has joined #tryton
2014-04-30 07:19 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2014-04-30 07:21 <mar> i'm doing invoice_line.quantity = Decimal('12.0')
2014-04-30 07:21 <mar> and I get ('UserError', (u"You try to read records that don't exist anymore.\n(Document type: currency.currency)", ''))
2014-04-30 07:21 <mar> any ideas why?
2014-04-30 07:34 -!- pobsteta(~Thunderbi@pha75-11-82-236-85-232.fbx.proxad.net) has joined #tryton
2014-04-30 08:15 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-04-30 08:42 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-04-30 09:03 -!- nicoe(~nicoe@237.102-245-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2014-04-30 09:04 <mar> pokoli, are you there?
2014-04-30 09:09 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-04-30 09:13 <pokoli> hi mar
2014-04-30 09:14 <pokoli> mar: dificult to say with only this information
2014-04-30 09:15 <pokoli> mar: which is the currency of the invoice you're modifing?
2014-04-30 09:17 <mar> pokoli, i'm tryting to change invoice_line, just quantity, and I see that it tries to round amount
2014-04-30 09:17 <mar> two times, one on my invoice line, other on invoice_line without id
2014-04-30 09:18 -!- pobsteta(~Thunderbi@gut75-2-82-66-247-92.fbx.proxad.net) has joined #tryton
2014-04-30 09:18 <mar> method def on_change_with_amount(self):
2014-04-30 09:18 <mar> is called two times, self value:
2014-04-30 09:18 <mar> account.invoice.line,1
2014-04-30 09:18 <mar> account.invoice.line,None
2014-04-30 09:20 <mar> http://hg.tryton.org/trytond/trytond/modules/account_invoice/file/782d5242ba05/invoice.py#l1675
2014-04-30 09:20 <pokoli> mar: the invoice is genereted by a sale or a purchase?
2014-04-30 09:20 <mar> yes
2014-04-30 09:20 <pokoli> mar: so the other line is the remaining quantity of the sale/purchase pending to invoice
2014-04-30 09:21 <mar> oh, so it tries to create new invoice_line there?
2014-04-30 09:21 -!- jeancavallo(~giovanni@bob75-9-88-181-2-176.fbx.proxad.net) has joined #tryton
2014-04-30 09:21 <pokoli> mar: yes
2014-04-30 09:22 <mar> (self.invoice.currency if self.invoice
2014-04-30 09:22 <mar> else self.currency)
2014-04-30 09:22 <mar> why does it use self.invoice.currency here then?
2014-04-30 09:23 <pokoli> mar: do you have the invoice_standalone modules installed?
2014-04-30 09:23 <mar> no
2014-04-30 09:23 <mar> account.invoice,None
2014-04-30 09:23 <mar> == True for some reason
2014-04-30 09:29 <pokoli> mar: If you look at http://hg.tryton.org/modules/sale/file/e30b58f6fd4a/invoice.py you can see that new lines are only created when the invoice is posted
2014-04-30 09:29 <pokoli> mar: so I don't understand why it get's called on a on_change
2014-04-30 09:53 <mar> where do you see posted?
2014-04-30 09:55 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-30 10:00 <pokoli> mar: here http://hg.tryton.org/modules/sale/file/e30b58f6fd4a/invoice.py#l95
2014-04-30 10:03 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-04-30 10:26 <mar> i don't get it, where can I find method, which creates new account.invoice.line
2014-04-30 10:27 <mar> for purchase
2014-04-30 10:28 -!- xrg(~panos@ppp-2-84-137-19.home.otenet.gr) has joined #tryton
2014-04-30 10:29 -!- digitalsatori(~Thunderbi@114.94.143.109) has joined #tryton
2014-04-30 10:31 -!- meanmicio(~lfm@172.Red-83-38-121.dynamicIP.rima-tde.net) has joined #tryton
2014-04-30 10:31 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2014-04-30 10:35 <pokoli> mar: just print a traceback in the line where the error raises, to get the info about where is created the new line
2014-04-30 10:35 <pokoli> mar: do you have custom modules?
2014-04-30 10:35 <mar> yes I do, it may be the cause
2014-04-30 10:36 <mar> the other one that I can think of is context ;)
2014-04-30 10:36 <pokoli> mar: so go for the traceback and you will know who creates the new line :)
2014-04-30 10:36 <mar> trace is kindof useless
2014-04-30 10:36 <mar> http://pastebin.com/ZYSJNJkx
2014-04-30 10:41 <cedk> mar: is your invoice line added to an invoice ?
2014-04-30 10:45 <mar> yes cedk
2014-04-30 10:46 <cedk> mar: does the invoice has a currency?
2014-04-30 10:48 <cedk> mar: could you show your full proteus script?
2014-04-30 10:48 <mar> http://pastebin.com/XdHaeT13
2014-04-30 10:48 <mar> crash is on invoice_line.quantity = Decimal('12.')
2014-04-30 10:49 <cedk> mar: I don't understand, it is not a proteusscript
2014-04-30 10:51 <mar> do you call proteusscript the .rst?
2014-04-30 10:51 <mar> i copypasted creation of objects I need into .py unittest
2014-04-30 10:52 <cedk> mar: which version?
2014-04-30 10:53 <mar> 2.8.4 or 2.8.5
2014-04-30 10:58 <cedk> mar: the problem is that you search the invoice line not comming from the invoice
2014-04-30 10:58 <cedk> mar: so proteus doesn't know anything about a parent and so does not send the invoice information
2014-04-30 10:59 <cedk> mar: and the module so thry to use the currency on the line
2014-04-30 10:59 <cedk> mar: with proteus, you have to follow the client workflow
2014-04-30 11:00 <cedk> mar: Model.get('account.invoice.line').find() can not be done on the client
2014-04-30 11:00 <mar> if I get invoice, = purchase.invoices
2014-04-30 11:00 <mar> invoice_line, = invoice.lines
2014-04-30 11:00 -!- digitalsatori(~Thunderbi@114.94.143.109) has joined #tryton
2014-04-30 11:00 <mar> it works, thank you very much
2014-04-30 11:19 -!- frispete(~frispete@p54A93286.dip0.t-ipconnect.de) has joined #tryton
2014-04-30 11:24 -!- meanmicio(~lfm@172.Red-83-38-121.dynamicIP.rima-tde.net) has joined #tryton
2014-04-30 11:24 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2014-04-30 12:00 -!- corro(~corro@46.22.23.85) has joined #tryton
2014-04-30 12:46 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-30 13:35 -!- pobsteta(~Thunderbi@gut75-2-82-66-247-92.fbx.proxad.net) has joined #tryton
2014-04-30 14:15 -!- jeancavallo(~giovanni@bob75-9-88-181-2-176.fbx.proxad.net) has joined #tryton
2014-04-30 14:21 -!- pobsteta(~Thunderbi@gut75-2-82-66-247-92.fbx.proxad.net) has joined #tryton
2014-04-30 14:23 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-30 14:44 <corro> in the spirit of issue3884 you could also remove the OrderedDict backport
2014-04-30 14:44 <cedk> corro: patch is welcome
2014-04-30 14:47 <corro> cedk: new issue then?
2014-04-30 14:49 <cedk> corro: yes
2014-04-30 14:50 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton
2014-04-30 14:52 <corro> cedk: nevermind, it's already gone...
2014-04-30 14:53 <corro> ACTION should think more before he talks
2014-04-30 15:00 -!- sharoonthomas(~sharoonth@118.91.181.18) has joined #tryton
2014-04-30 15:39 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2014-04-30 15:40 -!- mariomop(~quassel@host243.186-125-116.telecom.net.ar) has joined #tryton
2014-04-30 15:57 <mar> can someone explain me on_change and on_change_with usage?
2014-04-30 15:57 <mar> I want to monitor one field change on model, and if it changes - do some actions on other models
2014-04-30 16:21 <pokoli> mar: it's well explained on the docs
2014-04-30 16:21 <pokoli> http://doc.tryton.org/3.2/trytond/doc/ref/models/fields.html?highlight=selection#trytond.model.fields.Field.on_change
2014-04-30 16:21 <pokoli> mar: so what don't you understand?
2014-04-30 16:25 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2014-04-30 16:26 -!- naringas(~naringas@187.171.88.142) has joined #tryton
2014-04-30 16:32 -!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton
2014-04-30 16:34 -!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton
2014-04-30 16:36 -!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton
2014-04-30 16:46 -!- udono(~udono@ip-176-199-172-92.unitymediagroup.de) has joined #tryton
2014-04-30 16:51 -!- naringas(~naringas@187.171.79.117) has joined #tryton
2014-04-30 16:58 -!- naringas(~naringas@187.171.79.117) has joined #tryton
2014-04-30 17:18 -!- pobsteta(~Thunderbi@37.160.57.218) has joined #tryton
2014-04-30 17:29 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton
2014-04-30 17:33 -!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton
2014-04-30 18:28 <pokoli> cedk: can I commit on www.tryton.org?
2014-04-30 18:35 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton
2014-04-30 18:44 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2014-04-30 19:01 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2014-04-30 20:37 -!- LordVan(~lordvan@93.82.207.62) has joined #tryton
2014-04-30 20:37 -!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton
2014-04-30 21:32 -!- meanmicio(~lfm@172.Red-83-38-121.dynamicIP.rima-tde.net) has joined #tryton
2014-04-30 21:32 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2014-04-30 22:15 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton

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