IRC logs of #tryton for Thursday, 2014-01-23

chat.freenode.net #tryton log beginning Thu Jan 23 00:00:01 CET 2014
2014-01-23 08:42 <Laura87> hello!!
2014-01-23 08:42 <Laura87> :)
2014-01-23 10:46 <sharoonthomas> pokoli: jeancavallo: I have added support for inter sphinx to the tryton documentation project to x-refer tryton documentation where required. https://github.com/tryton/tryton-documentation/pull/32
2014-01-23 10:59 <pokoli> sharoonthomas: merged :) we should enforce that new contributions use this syntax
2014-01-23 11:19 <sharoonthomas> pokoli: yes and thanks for merging
2014-01-23 13:46 <maxwell> Hi, can you help me with new server setup on ubuntu?
2014-01-23 13:46 <maxwell> I have configured my trytond.conf file
2014-01-23 13:46 <maxwell> but I could not connect from tryton client to tryton server
2014-01-23 13:47 <maxwell> the client is on the windows machine
2014-01-23 13:48 <maxwell> client says "Could not connect to the server"
2014-01-23 13:49 <maxwell> tryton started normally and does not output any error on the server
2014-01-23 13:51 <b0r7> maxwell: whats is your trytond setting for jsonrpc?
2014-01-23 13:51 <b0r7> trytond.conf, i mean
2014-01-23 13:51 <maxwell> jsonrpc = localhost:8000
2014-01-23 13:52 <b0r7> try *:8000
2014-01-23 13:52 <b0r7> and restart the server
2014-01-23 13:53 <maxwell> b0r7: same error :(
2014-01-23 13:53 <maxwell> wait
2014-01-23 13:53 <maxwell> Now I got an error on server side
2014-01-23 13:53 <maxwell> in log
2014-01-23 13:54 <maxwell> b0r7: thx, this means that connection now works
2014-01-23 13:54 <b0r7> maxwell: np
2014-01-23 13:55 <maxwell> where to get initial mysql tables?
2014-01-23 13:55 <maxwell> ::ffff:192.168.55.75 - - [23/Jan/2014 15:11:55] code 400, message Bad request syntax ('\x80:\x01\x03\x01\x00!\x00\x00\x00\x10\x00\x009\x00\x008\x00\x005\x00\x00\x16\x00\x00\x13\x00\x00') [Thu Jan 23 15:11:55 2014] INFO:database:connect to "template1"
2014-01-23 13:57 <b0r7> maxwell: sorry, im using postgresql with trytond, haven't played with mysql.. but..
2014-01-23 13:58 <maxwell> b0r7: Yes, but how you did setup db?
2014-01-23 13:58 <maxwell> b0r7: I suppose there must be some initial tables with some initial data?
2014-01-23 13:59 <b0r7> maxwell: i just registered a user 'tryton' for postgres .. wait there was a guide..
2014-01-23 14:00 <maxwell> b0r7: https://code.google.com/p/tryton/wiki/SetupAndStart this one?
2014-01-23 14:00 <maxwell> b0r7: I followed it
2014-01-23 14:01 <b0r7> maxwell: jup, and you did start trytond as user 'tryton'
2014-01-23 14:02 <b0r7> ?
2014-01-23 14:05 <maxwell> b0r7: yes
2014-01-23 14:06 <b0r7> maxwell: do you use postgres or mysql?
2014-01-23 14:06 <maxwell> b0r7: mysql
2014-01-23 14:09 <b0r7> maxwell: just to rule out the obvious trytond.conf: db_type, db_user, db_password are making sense, you can connect via $mysql -u etc..
2014-01-23 14:10 <jeancavallo> maxwell: Are you sure that the client and server version are the same ?
2014-01-23 14:13 <maxwell> b0r7: yes, mysql connection parameters are correct
2014-01-23 14:13 <maxwell> jeancavallo: both are 3.0.1
2014-01-23 14:17 <jeancavallo> maxwell: Can you start the client with the -v flag and see what request fails ?
2014-01-23 14:18 <b0r7> maxwell: i coud be totally wrong but database:connect to "template1" sounds like postgres, sorry to ask again.. is db_type realy mysql in trytond.conf (can't test myself at the moment)
2014-01-23 14:19 <jeancavallo> b0r7: maxwell; Bad request should mean that the server does not understand the client's request no ?
2014-01-23 14:19 <maxwell> b0r7: there was nothing, then I changed it to mysql, btw error does not appear anymore
2014-01-23 14:28 <maxwell> sorry guys, chrome crushed (I'm using webchat)
2014-01-23 14:28 <maxwell> jeancavallo: there isn't any additional information
2014-01-23 14:28 <maxwell> jeancavallo: when using -v option
2014-01-23 15:32 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2014-01-23 15:51 <maxwell> so I've tried with postgresql
2014-01-23 15:51 <maxwell> and it worked
2014-01-23 15:51 <maxwell> connection works
2014-01-23 15:51 <maxwell> but when I press "create" button on database field in client
2014-01-23 15:51 <maxwell> nothing happens
2014-01-23 15:52 <maxwell> any ideas?
2014-01-23 16:03 -!- strebitz(~sebastian@91.183.59.105) has left #tryton
2014-01-23 16:05 <pokoli> maxwell: there is any message on the server logs?
2014-01-23 16:05 <pokoli> maxwell: you entered all the fields on the create database form?
2014-01-23 16:07 <maxwell> Exception: Module stock_supply not found
2014-01-23 16:07 <maxwell> now I get these error
2014-01-23 16:07 <maxwell> pokoli: Exception: Module stock_supply not found
2014-01-23 16:09 <pokoli> maxwell: so you're missing stock_supply module. You need to install it
2014-01-23 16:09 <maxwell> pokoli: but this is fresh install
2014-01-23 16:09 <pokoli> maxwell: you may have a module that depends on this module so it's needed
2014-01-23 16:09 <pokoli> maxwell: how do you installed trytond?
2014-01-23 16:11 <maxwell> pokoli:
2014-01-23 16:11 <maxwell> pokoli: https://code.google.com/p/tryton/wiki/SetupAndStart
2014-01-23 16:11 <maxwell> pokoli: is there any other documentation?
2014-01-23 16:15 <maxwell> pokoli: I installed this module with pip
2014-01-23 16:15 <maxwell> pokoli: and now I cannot start my server
2014-01-23 16:15 <maxwell> pokoli: message is the same Exception: Module stock_supply not found
2014-01-23 16:15 <pokoli> maxwell: but how dit you installed the server?
2014-01-23 16:16 <maxwell> pokoli: by pip
2014-01-23 16:17 <maxwell> pokoli: wait
2014-01-23 16:17 <maxwell> pokoli: now trytond --version tells me, that I have 2 version
2014-01-23 16:17 <maxwell> pokoli: wtf?
2014-01-23 16:17 <pokoli> maxwell: because stock_supply depends on trytond (the server) and pip installs the server as dependency
2014-01-23 16:18 <pokoli> maxwell: you must install the module for the same serios of the trytond server and pip will not install the server as it would be an already satisfied requirement
2014-01-23 16:18 <pokoli> s/serios/series
2014-01-23 16:25 <maxwell> pokoli: I suppose the problem
2014-01-23 16:26 <maxwell> pokoli: is in the fact that there are two versions of trytond on server
2014-01-23 16:26 <maxwell> pokoli: 1 was installed via apt-get and the second as I found by pip
2014-01-23 16:26 <maxwell> pokoli: thank you
2014-01-23 16:28 <pokoli> maxwell: yes that's a common problem :P
2014-01-23 16:28 <pokoli> maxwell: you're running de apt-get version so the module is not found. If you run the pip installed version you wouldn't have any problems
2014-01-23 16:30 <maxwell> pokoli: I have already uninstalled all and installed fresh trytond verson from pip
2014-01-23 16:32 <maxwell> pokoli: now i suppose all works fine
2014-01-23 16:36 <pokoli> maxwell_: i will recomend you using virtualenvs
2014-01-23 16:37 <maxwell_> pokoli: yeah I usually use them on my django project
2014-01-23 16:37 <maxwell_> pokoli: but this is test virtual server so I just trying to test tryton
2014-01-23 16:37 <maxwell_> pokoli: etc.
2014-01-23 17:27 <jvblasco> guys, is it possible to redefine with a module a workflow already defined in another module?
2014-01-23 17:28 <jeancavallo> jvblasco: I would say you have to override __setup__ and redefine the transitions
2014-01-23 17:29 <jvblasco> jeancavallo: same way u override the RPC option, to expose a method in the RPC interface?
2014-01-23 17:30 <jvblasco> and what about the code hardcoded to the already existing states?
2014-01-23 17:32 <maxwell_> now i'm getting error
2014-01-23 17:32 <maxwell_> raise Exception('Module %s not found' % module) Exception: Module purchase not found
2014-01-23 17:32 <maxwell_> but if i type pip install trytond-purchase
2014-01-23 17:32 <maxwell_> it says that this module is already installed
2014-01-23 17:32 <maxwell_> if I add -U option
2014-01-23 17:33 <maxwell_> then when launching trytond -- I get error ImportError: No module named trytond
2014-01-23 17:34 <pokoli> I'm getting Calling method XXXXX on model YYYY is not allowed! in a selection method, any tips?
2014-01-23 17:35 <jvblasco> maxwell_: try trytond -d DatabaseName -u all
2014-01-23 17:35 <jvblasco> maxwell_: And retry after that finishes
2014-01-23 17:35 <maxwell_> jvblasco: executing this command i got – Exception: Module purchase not found
2014-01-23 17:36 <jeancavallo> jvblasco: What do you mean by 'hardcoded'
2014-01-23 17:37 <jvblasco> jeancavallo: http://pastebin.com/zjsPUdHZ
2014-01-23 17:38 <jvblasco> maxwell_: does pip freeze show the purchase module installed?
2014-01-23 17:39 <pokoli> jvblasco: you can also modify it via the __setup__ method
2014-01-23 17:39 <jvblasco> pokoli: can i modify fields with the setup method?
2014-01-23 17:39 <pokoli> jvblasco: of course
2014-01-23 17:39 <jvblasco> pokoli: Is that really True?
2014-01-23 17:39 <jvblasco> pokoli: OMFG, u made me a son today
2014-01-23 17:40 <jvblasco> pokoli: one of the few puzzle pieces i thought tryton was missing lol
2014-01-23 17:40 <jvblasco> jeancavallo, pokoli: then it's all good, i c everything is overrideable. All good ;)
2014-01-23 17:41 <jvblasco> maxwell_: may i see a pip freeze? i think u are having problems with tryton versions
2014-01-23 17:41 <pokoli> jvblasco: if you find anything thats not overrideable feel free to coment on tryton-dev :)
2014-01-23 17:49 <maxwell_> jvblasco: http://pastebin.com/NKmgvp4s
2014-01-23 17:59 <pokoli> if anyone has the problem I commented 30 minutes earlier, the solution is to add your method name to __rpc__ of the clas
2014-01-23 17:59 <pokoli> the problem was that the field is a Function field, so tryton doesn't add it automatically, and you have to add it manually
2014-01-23 18:19 <jvblasco> maxwell_: and how did u set up the database?
2014-01-23 18:20 <jvblasco> maxwell_: i mean u have problems with some databases or the server just doesn't start?
2014-01-23 18:20 <maxwell_> jvblasco: https://code.google.com/p/tryton/wiki/SetupAndStart
2014-01-23 18:20 <maxwell_> jvblasco: there was some problems with mysql
2014-01-23 18:21 <maxwell_> jvblasco: then i just gave up and used postgresql
2014-01-23 18:21 <jvblasco> maxwell_: i cannot help with mysql
2014-01-23 18:21 <maxwell_> jvblasco: and connection worked succesfully, so now I have troubles test system with client
2014-01-23 18:21 <jvblasco> maxwell_: and u switched to postgres and server doesn't start?
2014-01-23 18:22 <maxwell_> jvblasco: server starts sucessfully, but when i try to connect to it
2014-01-23 18:22 <maxwell_> jvblasco: i have error I mentiod before
2014-01-23 18:23 <maxwell_> jvblasco: and on client i get an error: Exception: Module purchase not found
2014-01-23 18:23 <maxwell_> jvblasco: when trying to connect
2014-01-23 18:23 <pokoli> maxwell_: use a virtualenv :)
2014-01-23 18:23 <jvblasco> maxwell_: to a database?
2014-01-23 18:23 <maxwell_> jvblasco: to a tryton server
2014-01-23 18:24 <jvblasco> maxwell_: oh yeah virtualenv rulez
2014-01-23 18:24 <pokoli> maxwell_: it sound that modules are conflicting, you're accessing another tryton instance that doesn't have your modules available
2014-01-23 18:24 <maxwell_> pokoli: I tried it, but then I had some errors too
2014-01-23 18:24 <jvblasco> maxwell_: that option, or the database is corrupted sowehow, just try to create a new database
2014-01-23 18:24 <maxwell_> pokoli: I will try one more time. Can you get me some advices in installing with virtualenv?
2014-01-23 18:24 <jvblasco> maxwell_: pip install virtualenv?
2014-01-23 18:25 <jvblasco> maxwell_: i know a package virtualenvwrapper exists, but never used it myself
2014-01-23 18:25 <jvblasco> maxwell_: Have u tried to create a brand new database after the switch to postgres?
2014-01-23 18:26 <pokoli> maxwell_: just create the virtualenv and install your module (it will install the server and other modules dependencies)
2014-01-23 18:26 <pokoli> maxwell_: mkvirtualenv && pip install trytond-purchase
2014-01-23 18:26 <pokoli> maxwell_: and you should get it running
2014-01-23 18:53 <jvblasco> see u tomorrow guys
2014-01-23 20:34 <pobsteta> what is the error of this code : http://pastebin.com/K7FfH7DN
2014-01-23 20:38 <pobsteta> it's ok i find the error !
2014-01-23 22:58 <hellhound> hey guys, I'm currently implementing a web frontend for tryton and I got a question related to user permissions: how can I make a given tryton module visible on the menu for new users?
2014-01-23 22:59 <hellhound> programmatically of course
2014-01-23 23:00 <cedk> hellhound: what do you mean by "making visible module on menu" ?
2014-01-23 23:02 <hellhound> cedk: when I log into tryton using the gtk client using that user's credentials I only see the party module
2014-01-23 23:03 <hellhound> cedk: also the products module, don't know why though (it is installed in my trytond distribution)
2014-01-23 23:03 <cedk> hellhound: it depends of the group in which the user is
2014-01-23 23:04 <hellhound> cedk: you mean that I have to create a user group and assign permissions to it?
2014-01-23 23:04 <hellhound> cedk: I know there's a panel for that on the user view
2014-01-23 23:05 <cedk> hellhound: modules come with groups
2014-01-23 23:05 <hellhound> cedk: huh didn't know that either
2014-01-23 23:05 <hellhound> :P
2014-01-23 23:06 <hellhound> ok, I'll look into it
2014-01-23 23:31 <hellhound> cedk: I got another question, is there a way to completely separate tryton's modules for each user?
2014-01-23 23:31 <hellhound> cedk: I mean, like running separate instances
2014-01-23 23:31 <hellhound> *separated
2014-01-23 23:32 <hellhound> cedk: we are building a SaaS with tryton as it's backend
2014-01-23 23:33 <hellhound> and we are relatively new to tryton
2014-01-23 23:36 <cedk> hellhound: what are you calling user?
2014-01-23 23:36 <hellhound> cedk: a tryton user
2014-01-23 23:36 <cedk> hellhound: using the same trytond or not depends of the requirements
2014-01-23 23:37 <cedk> hellhound: do you need to share data between companies, for example?
2014-01-23 23:37 <hellhound> cedk: well, probably not
2014-01-23 23:42 <hellhound> cedk: so, it's not possible then?
2014-01-23 23:42 <hellhound> cedk: unless I run separated instances?
2014-01-23 23:42 <hellhound> I mean, separated databases

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