IRC logs of #tryton for Wednesday, 2010-05-26

chat.freenode.net #tryton log beginning Wed May 26 00:00:02 CEST 2010
2010-05-26 00:36 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-05-26 01:12 -!- zodman(~zodman@67.223.236.231) has joined #tryton
2010-05-26 01:34 -!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has left #tryton
2010-05-26 01:36 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2010-05-26 05:19 -!- yangoon(~mathiasb@p549F6BB2.dip.t-dialin.net) has joined #tryton
2010-05-26 05:35 <plantian> What is the best way to add a sale-wide discount? Just add a product with negative amount?
2010-05-26 07:02 <cedk> plantian: it depends of the kind of discount
2010-05-26 07:03 <plantian> pre-tax, for returned packaging
2010-05-26 07:03 <cedk> plantian: and what will be the account moves excepected
2010-05-26 07:05 <cedk> plantian: I don't know what is that
2010-05-26 07:06 <plantian> packaging, like the boxes/wrapper that prior goods were delivered in, customers get a discount for returning them so we can use them again
2010-05-26 07:07 <plantian> yeah i have no idea what hte account moves would be either, i don't know anything about accounting
2010-05-26 07:08 <cedk> plantian: ok, it is returnable
2010-05-26 07:10 <cedk> plantian: I think it must be a product
2010-05-26 07:10 <plantian> with just a negative price?
2010-05-26 07:12 <plantian> cedk: ^(sorry forgot to prefix)
2010-05-26 07:12 <cedk> plantian: I suppose but you should check with an accountant
2010-05-26 07:14 <cedk> plantian: and I will use a negative quantity instead of price
2010-05-26 07:16 <plantian> good idea, thanks, i'll try it and find more information
2010-05-26 07:30 -!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has joined #tryton
2010-05-26 07:56 <cedk> plantian: you should also define what to do with returns about packing
2010-05-26 07:58 <plantian> you mean supposed the sale is returned so that they end up hypothetically taking the "packaging" back ?
2010-05-26 08:04 -!- sharkcz(~dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton
2010-05-26 08:38 <cedk> plantian: no, if you put product on sale for returns then they will be put on the packing generated by the sale
2010-05-26 08:39 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-05-26 08:53 -!- eLBati(~elbati@94.160.69.89) has joined #tryton
2010-05-26 09:05 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-05-26 09:10 <plantian> cedk: but not if the product is stockable right ?
2010-05-26 09:10 <cedk> plantian: it is the opposite, if the product is service then it will not be on packing
2010-05-26 09:38 <plantian> cedk: oh right, that is what I meant
2010-05-26 09:38 <plantian> although it seems like a total abuse of the idea
2010-05-26 09:38 <plantian> using a service product to provided a discount
2010-05-26 09:38 <plantian> ha but if it works i guess that's good
2010-05-26 09:52 -!- Red15(~red15@unaffiliated/red15) has joined #tryton
2010-05-26 09:58 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-05-26 10:30 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-05-26 10:36 -!- paepke(~paepke@p4FEB252F.dip0.t-ipconnect.de) has joined #tryton
2010-05-26 10:42 -!- mr_amit(~amit@117.254.31.52) has joined #tryton
2010-05-26 11:05 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-05-26 12:06 -!- eLBati(~elbati@94.163.89.47) has joined #tryton
2010-05-26 12:53 -!- sharkcz(~dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton
2010-05-26 12:58 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton
2010-05-26 13:40 -!- ikks_(~ikks@200.118.243.193) has joined #tryton
2010-05-26 14:05 -!- Red15(~red15@unaffiliated/red15) has joined #tryton
2010-05-26 15:03 -!- eLBati(~elbati@93.37.66.157) has joined #tryton
2010-05-26 16:26 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-05-26 17:07 -!- tekknokrat(~lila@dslb-094-223-095-014.pools.arcor-ip.net) has joined #tryton
2010-05-26 17:29 -!- paepke(~paepke@p4FEB252F.dip0.t-ipconnect.de) has left #tryton
2010-05-26 17:44 -!- woakas(~woakas@190.26.105.211) has joined #tryton
2010-05-26 17:58 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-05-26 18:41 -!- bellHead(~bell@41.174.15.51) has joined #tryton
2010-05-26 18:42 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-05-26 18:56 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-05-26 19:40 -!- tekknokrat(~lila@dslb-094-223-095-014.pools.arcor-ip.net) has joined #tryton
2010-05-26 19:41 -!- enlightx(~enlightx@217.202.249.172) has joined #tryton
2010-05-26 20:17 -!- paepke(~paepke@p5B32F1FA.dip.t-dialin.net) has joined #tryton
2010-05-26 21:13 -!- juanfer(~juanfer@190.26.146.165) has joined #tryton
2010-05-26 21:15 -!- eLBati(~elbati@94.163.20.76) has joined #tryton
2010-05-26 21:46 -!- juanfer_(~juanfer@190.26.146.165) has joined #tryton
2010-05-26 22:14 -!- ebanders(~ebanders@c-66-41-121-0.hsd1.mn.comcast.net) has joined #tryton
2010-05-26 22:47 <ebanders> I'm struggling with getting the Tryton server running.
2010-05-26 22:49 <ebanders> I have 1.6 installed on Debian squeeze. My client will connect just fine to the Tryton demo server, but says 'Could not connect to server!' when trying to connect to my own machine.
2010-05-26 22:51 <paepke> ebanders, shows netstat a running server?
2010-05-26 22:51 <paepke> ebanders, maybe its bound only to ipv6
2010-05-26 22:52 <ebanders> all iptable chains are empty. I can verify that trytond is running by ps | grep.
2010-05-26 22:52 <ebanders> i set the interface to the only ip address of the machine
2010-05-26 22:52 <paepke> ok, and you gave your tryton-client that ip to connect?
2010-05-26 22:52 <paepke> ebanders, 0.0.0.0 is a first failsave config
2010-05-26 22:53 <ebanders> I did. it is a ipv4 address (192.168.1.101). I also tried 0.0.0.0.
2010-05-26 22:54 <paepke> how did you installed it?
2010-05-26 22:54 <ebanders> supplying -v to the daemon doesn't appear to give any more output to /var/log/trytond.log.
2010-05-26 22:54 <ebanders> straight from the debian squeeze repository (no modifications)
2010-05-26 22:54 <paepke> ebanders, with debian packages or from source
2010-05-26 22:54 <paepke> ebanders, ok
2010-05-26 22:54 <ebanders> binary package.
2010-05-26 22:55 <paepke> ebanders, does it run as user "tryton"?
2010-05-26 22:55 <ebanders> whenever the tryton client tries connecting a log message of "INFO:database:connect to "template1"" shows up in the log.
2010-05-26 22:56 <paepke> ebanders, thats perfectly
2010-05-26 22:56 <ebanders> ps -Alf | grep tryton verifies that it is running as the user 'tryton'
2010-05-26 22:57 <paepke> ebanders, strange error message anyway. can you post you trytond.log to paste.poocoo.org or something similar
2010-05-26 22:59 <ebanders> http://pastebin.com/GbJpzBvz
2010-05-26 23:02 <paepke> ebanders, looks good. and it doesn't say "create new database?
2010-05-26 23:02 <ebanders> oh shoot. for good measure I tried removing all modules and caught a message from dpkg that I missed before.
2010-05-26 23:03 <ebanders> paepke: it does not.
2010-05-26 23:03 <paepke> ebanders, ok. now you install that missing package?
2010-05-26 23:03 <ebanders> paepke: give me a few minutes.
2010-05-26 23:04 <paepke> ebanders, no problem
2010-05-26 23:21 <ebanders> paepke: I'm trying to work out a problem with postgresql and unicode
2010-05-26 23:22 <paepke> unicode?
2010-05-26 23:22 <paepke> ebanders, what have you done?
2010-05-26 23:24 <ebanders> the setup scripts for debian squeeze do not perform any database creation/configuration. There is a supplied readme in the debian binary package for performing that configuration manually (which is what I'm working on).
2010-05-26 23:24 -!- yangoon_rm(~mathiasb@p549F6BB2.dip.t-dialin.net) has joined #tryton
2010-05-26 23:25 <paepke> ebanders, yes, thats right. that is not already done.
2010-05-26 23:25 <paepke> you can use postgres, sqlite or mysql as database (postgres is the more mature one for tryton)
2010-05-26 23:25 <ebanders> the postgresql database creation statement specified --encoding=unicode and the postgresql server is complaining about that statement.
2010-05-26 23:26 <paepke> ebanders, one moment. can you paste here the whole statement?
2010-05-26 23:27 <ebanders> createdb --encoding=UNICODE --owner=tryton tryton
2010-05-26 23:27 <paepke> are you the user postgre?
2010-05-26 23:28 <ebanders> by way of su - tryton -c ...
2010-05-26 23:28 <ebanders> ^^ misread questions
2010-05-26 23:29 <ebanders> was using su - postgres -c
2010-05-26 23:30 <paepke> try that: sudo su postgres -c "createuser --createdb --no-adduser -P tryton"
2010-05-26 23:31 <paepke> don't create a database via the command line. you can do that via the client
2010-05-26 23:32 <paepke> ebanders, did you already created the user tryton in postgres?
2010-05-26 23:32 <ebanders> yes
2010-05-26 23:33 <paepke> ebanders, and you have to start trytond as user "tryton" - when using user root it won't connect to the postgres user as username tryton.
2010-05-26 23:33 <paepke> ebanders, cause of the pg_hba.conf delivered by debian
2010-05-26 23:34 <ebanders> trytond is run by tryton-- correct.
2010-05-26 23:35 <ebanders> I think I just need to manage the database creation and then initialize it before running the daemon normally.
2010-05-26 23:36 <paepke> adding a database is done via the tryton client. the user tryton has to have the "--createdb" permisson
2010-05-26 23:37 <paepke> pls paste trytond.conf and pg_hba.conf
2010-05-26 23:40 <ebanders> Ok. I've got an option to create a database.
2010-05-26 23:41 <ebanders> I had fubar'd some locale configurations with postgresql that took several minutes to fix.
2010-05-26 23:42 <paepke> ebanders, ok. so its working now?
2010-05-26 23:52 <ebanders> nope. I wasn't clear about which password was requested on the create new database page, so I reset the password of the tryton postgresql user to be sure that I had the correct one (I didn't already know how to change passwords in postgres).
2010-05-26 23:52 <ebanders> I realize now that it was asking for the admin_password.
2010-05-26 23:53 <ebanders> and I get the same message I received when trying to create the database manually from the command line.
2010-05-26 23:55 <ebanders> error message: createdb: database creation failed: ERROR: encoding UTF8 does not match locale en_US \ DETAIL: The chosen LC_CTYPE setting requires encoding LATIN1.
2010-05-26 23:56 <cedk> ebanders: tryton database must be utf-8 so you must generate utf-8 locales
2010-05-26 23:56 <ebanders> I have generated en_US.UTF-8 locales _after_ receiving the message the first time.
2010-05-26 23:58 <ebanders> locale -a shows: C, en_US, en_US.iso88591, en_US.utf8, POSIX
2010-05-26 23:58 <cedk> ebanders: and locale
2010-05-26 23:59 <ebanders> en_US

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