IRC logs of #tryton for Tuesday, 2012-08-14

chat.freenode.net #tryton log beginning Tue Aug 14 00:00:01 CEST 2012
2012-08-14 11:33 <grek324> Hello, after update to 2.4 my sale import is no longer working because of problems with the unit_price field. http://pastebin.com/1cZkLZUi Do someone know a reason ? I define with: sale_line.unit_price = Decimal(price_product_netto_round)
2012-08-14 11:36 <cedk> grek324: looks like the unit_price is a float
2012-08-14 11:41 <grek324> cedk: I use float to calculate netto price but why Decimal(price_product_netto_round) is no longer working?
2012-08-14 11:45 <cedk> grek324: I don't know what you are doing
2012-08-14 11:56 <grek324> I import from CSV file. There I have price with tax (brutto) for product. Then I change to float to calculate netto price (without tax), make round price and chanche to Decimal http://pastebin.com/BEQWUqz8
2012-08-14 12:01 <cedk> grek324: it is probably because the unit_price is a float before you setup
2012-08-14 14:46 <grek324> I still have problems with making sale on tryton 2.4 with proteus. Even when I set sale_line.quantity = Decimal("1.00") and sale_line.unit_price = Decimal("1.000") I get error message "unsupported operand type(s) for *: \'Decimal\' and \'float\'\n'>" . On 2.0 this is working fine and I can't find the reason for this problem
2012-08-14 15:21 <cedk> grek324: is the scenario working for you http://hg.tryton.org/2.4/modules/sale/file/7e68db93bc88/tests/scenario_sale.rst
2012-08-14 15:51 <corro> does someone know how to set the target email address when sending reports by mail?
2012-08-14 15:53 <shomon> I'm getting the statetransition error when installing modules via pip... does this mean my server is not up to date, and how do I upgrade it?
2012-08-14 15:55 <cedk> corro: it is done here: http://hg.tryton.org/tryton/file/f5bb8746ac50/tryton/action/main.py#l178
2012-08-14 15:55 <cedk> corro: it comes from pyson_email
2012-08-14 15:56 <corro> cedk: thanks a lot, I'll look into it
2012-08-14 15:58 <cedk> shomon: give more information about the error
2012-08-14 15:58 <shomon> Ok. I installed 2.4 via pip, and now installed a few modules to do with stock taking
2012-08-14 15:58 <shomon> and then restarted, and it gives now the error
2012-08-14 15:58 <shomon> so it's similar to https://encrypted.google.com/search?hl=en&q=%22ImportError%3A%20cannot%20import%20name%20StateTransition%22
2012-08-14 15:58 <shomon> the pastebin and irclog on that link
2012-08-14 15:59 <shomon> I'll pastebin my own error just a sec
2012-08-14 16:00 <shomon> http://pastebin.com/eN0FrLJT
2012-08-14 16:02 <cedk> shomon: mixing versions of trytond packages
2012-08-14 16:02 <shomon> aaah...
2012-08-14 16:02 <shomon> how do I find out which one has the wrong version? can I query pip for version numbers?
2012-08-14 16:03 <shomon> hmm man pip
2012-08-14 16:03 <shomon> sorry :)
2012-08-14 16:12 <shomon> it's strange, I only installed things on http://pypi.python.org/pypi?:action=browse&show=all&c=551
2012-08-14 16:32 <cedk> shomon: there are all versions on pypi
2012-08-14 16:48 <shomon> :( I am doing "sudo pip search trytond |grep -B1 "INSTALLED""
2012-08-14 16:48 <shomon> but only trytond shows up
2012-08-14 16:49 <shomon> I just installed trytond_stock and it doesn't have "installed" after it
2012-08-14 16:57 <shomon> cedk, do you know what to do? I've done pip uninstall of all modules I installed before, but still get that statetransition error
2012-08-14 16:58 <shomon> I'm guessing one of them installed a dependency that's not gone away when I pip uninstalled
2012-08-14 17:00 <shomon> maybe I can query tryton somehow or browse somewhere to see what modules it has installed
2012-08-14 17:15 <bechamel> shomon: I think your modules are more up to date than the server
2012-08-14 17:16 <bechamel> shomon: and if you have the same error, you have at least the party module that is not uninstalled
2012-08-14 17:18 <shomon> aah I see. Party module was installed already, it came with gnuhealth's ones
2012-08-14 17:18 <shomon> so maybe I need to pip update trytond.
2012-08-14 17:20 <shomon> ooh 2.4.1
2012-08-14 18:06 <shomon> it works!
2012-08-14 18:06 <shomon> the wonders of pip install --upgrade
2012-08-14 18:23 <shomon> hmm, any idea why when I go from tryton 2.4 client to 2.4.1 to "pip install --upgrade tryton" it takes me back to tryton 1.6??
2012-08-14 18:33 <shomon> ah there was an old tryton client in there via apt...
2012-08-14 18:36 <shomon> now I get "Can't import ModuleWorkFlow"
2012-08-14 18:37 <shomon> Can't Import name ModelWorkFlow"
2012-08-14 21:01 <grek324> shomon: are you using own modules?
2012-08-14 21:02 <grek324> ModelWorkflow, is now called Workflow
2012-08-14 21:18 <shomon> hello
2012-08-14 21:19 <shomon> hi grek324 thanks for asking.. no but maybe there is confusion in one of them
2012-08-14 21:19 <shomon> maybe it's an old version in there still
2012-08-14 21:19 <shomon> I have just upgraded to 2.4.1, then upgraded the stock module
2012-08-14 21:19 <shomon> and the server starts, but I installed the 2.4.1 client and it won't connect
2012-08-14 21:19 <shomon> it'll give that error. It still connects to the demo 2.4 site though
2012-08-14 21:26 <shomon> grek324, I'll try updating lots of modules :)
2012-08-14 21:27 <grek324> shomon: did you make database update befor connect?
2012-08-14 21:29 <shomon> aha...
2012-08-14 21:29 <shomon> um... I'll see how that's done
2012-08-14 21:31 <grek324> grek: su tryton -c "/path/to/trytond -u all -d yourdatabase"
2012-08-14 21:48 <shomon> thanks very much grek!
2012-08-14 21:54 <grek324> shomon: np
2012-08-14 21:54 <shomon> I tried it and got an error on the "contract" module
2012-08-14 21:54 <shomon> so am upgrading that first...
2012-08-14 21:54 <shomon> I wish pip would look at version numbers and not install if it clashed
2012-08-14 22:02 <cjbarnes18> can anyone suggest a good cheap vps?
2012-08-14 22:53 -!- scrapper(~scrapper@62-47-129-247.adsl.highway.telekom.at) has left #tryton
2012-08-14 23:41 -!- scrapper(~scrapper@62-47-139-97.adsl.highway.telekom.at) has left #tryton

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