IRC logs of #tryton for Tuesday, 2012-10-16

chat.freenode.net #tryton log beginning Tue Oct 16 00:00:01 CEST 2012
2012-10-16 13:29 <shalabhaggarwal> hi, how does the groups, rules and templates on taxes work?
2012-10-16 13:31 <shomon> I just applied a patch.. I didn't know how to.. but I think it's working...!
2012-10-16 13:31 <shomon> tryton has been crashing every day for like a month.. 2 connections is all it takes.. or one that doesn't disconnect
2012-10-16 13:31 <shomon> and postgres fills up all it's sections.
2012-10-16 13:31 <shomon> connections even
2012-10-16 13:32 <cedk> shomon: templates are just template use when creating chart
2012-10-16 13:32 <shomon> you mean shalabhaggarwal ?
2012-10-16 13:32 <cedk> shomon: oups it is for shalabhaggarwal
2012-10-16 13:32 <shomon> lol :)
2012-10-16 13:32 <shomon> thanks for the patch cedk
2012-10-16 13:32 <shomon> now to see if tryton stays up...
2012-10-16 13:32 <shomon> http://codereview.tryton.org/553004/diff/1/trytond/pool.py <-- that one I mean
2012-10-16 13:33 <cedk> shalabhaggarwal: rules are just substitutions pattern
2012-10-16 13:33 <cedk> shalabhaggarwal: groups is used for pattern matching for substitution
2012-10-16 13:34 <shalabhaggarwal> cedk: ok
2012-10-16 13:34 <cedk> shomon: if it was that, you just check if there is not a process that modify/touch the source code
2012-10-16 13:34 <shalabhaggarwal> cedk: lets say taxes are based upon the location of the party, then what should be the best way to deal with it
2012-10-16 13:35 <shomon> cedk, no I doubt it.
2012-10-16 13:35 <shomon> unless it's that damned nsa again
2012-10-16 13:35 <shomon> always leaving bugs in my code ;)
2012-10-16 13:42 <shomon> is there a way to do dinner vouchers.. or internal "tickets" in tryton?
2012-10-16 13:45 <shomon> hmm still got a "cursor already closed"
2012-10-16 13:51 <cedk> shomon: when ?
2012-10-16 13:52 -!- Telesight(~anthony@188-142-91-164.FTTH.ispfabriek.nl) has left #tryton
2012-10-16 13:53 <cedk> shalabhaggarwal: add the location on the tax rules
2012-10-16 13:53 <shomon> when I logged out
2012-10-16 13:54 <cedk> shalabhaggarwal: but here for EU, we just use different tax rules per location of the party
2012-10-16 13:54 <cedk> shalabhaggarwal: as the tax rules are linked to party
2012-10-16 13:54 <cedk> shomon: did you modify the login/out process ?
2012-10-16 13:57 <shalabhaggarwal> cedk: thanks
2012-10-16 13:57 <shomon> no cedk
2012-10-16 13:58 <shalabhaggarwal> cedk: also how do we handle the cumulative taxes?
2012-10-16 13:58 <shomon> ah actually I added an echo statement, as suggested here. It's in database.py, to try and log the error.
2012-10-16 13:58 <shomon> but I doubt that affects something.. I'll dig out the change
2012-10-16 13:59 <cedk> shalabhaggarwal: don't understand
2012-10-16 14:01 <shalabhaggarwal> cedk: invoice untaxed amount = 100, tax A - 5%, it comes 105, tax B - 10%(applies cumulatively over 105) - total amount becomes 105.5
2012-10-16 14:01 <shalabhaggarwal> *115.5
2012-10-16 14:10 <cedk> shalabhaggarwal: there is no such things
2012-10-16 14:11 <cedk> shalabhaggarwal: but indeed, your tax of 10% is not 10% but 10.05 %
2012-10-16 14:22 <shalabhaggarwal> cedk: ok
2012-10-16 14:24 <shalabhaggarwal> cedk: one more thing i have been facing issue with is providing fractional values(like 8.5) to a Numeric field via XML. It errors out saying assertion error for Decimal
2012-10-16 14:27 <mdnss> hi, what postgresql version are you using?
2012-10-16 14:35 <cedk> shalabhaggarwal: you must use: eval="Decimal('8.5')"
2012-10-16 14:36 <shalabhaggarwal> cedk: thanks, that was very trivial
2012-10-16 14:39 <mdnss> hi cedk
2012-10-16 14:40 <mdnss> what postgresql version are you using?
2012-10-16 14:41 <cedk> mdnss: 9.1.2
2012-10-16 14:41 <mdnss> ok, I'll install it, I was using 8.4 but having some trouble
2012-10-16 14:43 <cedk> mdnss: normally Tryton should be compatible with 8.x series
2012-10-16 14:47 <madness_> cedk, now I'm getting "could not connect to server", but its up
2012-10-16 14:49 <cedk> mdnss: depending of your OS, but sometimes the default port of pg is changed
2012-10-16 14:50 <mdnss> I'm using ubuntu 12.04
2012-10-16 15:04 <mdnss> cedk, I'm still getting "incompatible version of the server"
2012-10-16 15:05 <mdnss> do you know what does it mean?
2012-10-16 15:05 <cedk> mdnss: you must use the same two version number between server and client
2012-10-16 15:07 <cedk> mdnss: for example: 2.4 or 2.2 etc.
2012-10-16 15:07 <mdnss> so I should get and older server version
2012-10-16 15:07 <mdnss> because I couldn't find a newer client version
2012-10-16 15:10 <cedk> mdnss: which versions?
2012-10-16 15:13 <mdnss> cedk, sorry, I found it, the thing is... I'm using tryton v2.2 and trytond v2.4, should I only install tryton v2.4?
2012-10-16 15:16 <cedk> mdnss: yes
2012-10-16 15:16 <mdnss> cedk, now the error message is "could not connect to server"
2012-10-16 15:17 <mdnss> I'm going crazy with this!!
2012-10-16 15:19 <cedk> mdnss: is the server running?
2012-10-16 15:20 <mdnss> cedk, yes it is
2012-10-16 15:20 <cedk> mdnss: can it connect to the database?
2012-10-16 15:20 <mdnss> I couldn't create a db yet since I'm always having trouble with tryton
2012-10-16 15:22 <mdnss> cedk, I was trying to add a profile because I'm getting a wrong pwd msg
2012-10-16 15:22 <mdnss> but I've never set a pwd
2012-10-16 15:30 <cedk> mdnss: I mean "connect"
2012-10-16 15:32 <mdnss> I guess so
2012-10-16 15:36 <cedk> mdnss: need to be checked
2012-10-16 15:37 <mdnss> cedk, I mean... it is, but I can't find the problem between postgresql and tryton
2012-10-16 15:38 <cedk> mdnss: ok so it is perhaps an IPv6 issue
2012-10-16 15:38 <cedk> mdnss: look at which address trytond is listening
2012-10-16 15:40 <mdnss> cedk, but I'm using it locally
2012-10-16 15:40 <cedk> mdnss: don't care
2012-10-16 15:40 <cedk> mdnss: a lot of people don't have localhost pointing to ::1
2012-10-16 15:42 <mdnss> cedk, how can I check that?
2012-10-16 15:44 <cedk> mdnss: netstat
2012-10-16 15:45 <mdnss> cedk, huge list, I can't see the 1st part :S
2012-10-16 21:32 <mdnss> cedk, are you still there?

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