IRC logs of #tryton for Thursday, 2013-02-14

chat.freenode.net #tryton log beginning Thu Feb 14 00:00:02 CET 2013
2013-02-14 01:17 <crisyelit1> hola a todos
2013-02-14 01:17 <crisyelit1> hi every all
2013-02-14 01:19 <crisyelit1> hi all
2013-02-14 01:20 <crisyelit1> quien puede explicarme como crear un modulo; who can tell me how to create a module
2013-02-14 01:30 <plantian> crisyelit1: What version of tryton are you using?
2013-02-14 01:30 <plantian> *trytond
2013-02-14 01:31 <crisyelit1> 2.6
2013-02-14 01:32 <crisyelit1> plantian, you can help
2013-02-14 01:32 <crisyelit1> ?
2013-02-14 01:34 <crisyelit1> i sorry, is 2.4
2013-02-14 01:38 <crisyelit1> plantian, this are you?
2013-02-14 01:38 <crisyelit1> here is you?
2013-02-14 01:38 <plantian> I am using 2.6, but 2.4 is similar.
2013-02-14 01:39 <crisyelit1> I sorry my english is bad
2013-02-14 01:39 <crisyelit1> no, is 2.4
2013-02-14 01:39 <crisyelit1> I understand
2013-02-14 01:39 <crisyelit1> :-D
2013-02-14 01:42 <plantian> crisyelit1: no problem, the best approach is to find a simple official module in 2.4 and write similar code
2013-02-14 01:42 <crisyelit1> i need to do some modules, but not; I made the hello world; but something bad
2013-02-14 01:42 <crisyelit1> ok
2013-02-14 01:42 <plantian> crisyelit1: The hello world on the wiki?
2013-02-14 01:42 <crisyelit1> yes
2013-02-14 01:43 <plantian> crisyelit1: So you created a basic module. Did you get it installed?
2013-02-14 01:44 <crisyelit1> no
2013-02-14 01:44 <crisyelit1> follow the steps, but not see in tryton
2013-02-14 01:47 <crisyelit1> :-(
2013-02-14 01:49 <plantian> crisyelit1: hold on let me start my client
2013-02-14 01:49 <plantian> crisyelit1: Do you see it in Administration > Modules ?
2013-02-14 01:50 <crisyelit1> yes
2013-02-14 01:50 <plantian> crisyelit1: What happens when you open your module and try to mark your module for installation?
2013-02-14 01:51 <crisyelit1> there should be the new module, but not see
2013-02-14 01:51 <crisyelit1> not see new modulo
2013-02-14 01:52 <crisyelit1> :'(
2013-02-14 01:53 <plantian> crisyelit1: I understand, where is your module with respect to your trytond/modules directory?
2013-02-14 01:56 <plantian> crisyelit1: The module must either be in the modules directory or you must have an entry point in your setup.py file. As far as I know those are the 2 ways to get it to show up.
2013-02-14 01:56 <crisyelit1> my system operation is ubuntu 12.04; /usr/local/lib/python2.7/dist-packages/trytond_sucursal-2.4.1-py2.6.egg
2013-02-14 01:57 <plantian> crisyelit1: Does your module have a setup.py file?
2013-02-14 02:05 <crisyelit1> no
2013-02-14 02:06 <crisyelit1> my module no have a setup.py file
2013-02-14 02:08 <plantian> crisyelit1: UNTESTED -- but you could try this -- https://gist.github.com/ianjosephwilson/4949829 -- put it in the same directory as __tryton__.py -- then run "python setup.py install"
2013-02-14 02:08 <plantian> crisyelit1: This setup.py is a simple version of this file -- http://hg.tryton.org/2.4/modules/stock/file/79360ff546ff/setup.py
2013-02-14 02:10 <crisyelit1> I can use that, work in my module
2013-02-14 02:14 <plantian> crisyelit1: ?
2013-02-14 02:14 <plantian> crisyelit1: The 'entry_points=' will make tryton show your module.
2013-02-14 02:21 <crisyelit1> did the setup.py my modules
2013-02-14 02:25 <plantian> crisyelit1: I don't understand. Did you try the setup.py file? Where is your helloWorld directory?
2013-02-14 02:25 <crisyelit1> but do not see it
2013-02-14 02:26 <crisyelit1> /usr/local/lib/python2.7/dist-packages/trytond_sucursal-2.4.1-py2.6.egg/trytond/modules/sucursal/setup.py
2013-02-14 02:29 <plantian> crisyelit1: I don't think you will need the setup.py if the module is there, sorry I could not tell where your module was.
2013-02-14 02:30 <plantian> crisyelit1: You can try to install your module from the command line.
2013-02-14 02:31 <plantian> crisyelit1: You can try running: trytond -c CONFIG_FILE -d DBNAME --init=YOUR_MODULE_NAME
2013-02-14 02:31 <crisyelit1> hello worlk module for branch change it but everything inside is equal
2013-02-14 02:33 <plantian> crisyelit1: Another thing to check is if there are messages about your module when you start trytond.
2013-02-14 02:33 <plantian> crisyelit1: I have to go but I will be back later, sorry I have not been able to help.
2013-02-14 02:37 <crisyelit1> mistake gave the command you gave me
2013-02-14 02:37 <crisyelit1> IOError: [Errno 2] No such file or directory: 'setup-py'
2013-02-14 02:39 -!- crisyelit1(~jhuliana@181-183-191-3.genericrev.telcel.net.ve) has left #tryton
2013-02-14 11:52 <cedk> could someone have also a look at https://bugs.tryton.org/issue3003
2013-02-14 12:01 -!- scrapper(~scrapper@88.117.159.6) has left #tryton
2013-02-14 12:15 <ronaldm> cedk, on Windows XP running Microsoft security essentials I did not detect anything. I even extracted the files, still nothing
2013-02-14 12:15 <ronaldm> cedk, I will try on different machine with Avira
2013-02-14 12:15 <ronaldm> cedk, the installer file works fine as well
2013-02-14 12:16 -!- sharoonthomas(~sharoonth@122.177.165.119) has left #tryton
2013-02-14 12:18 <flo0> After my training mid Jan I am finally starting with Tryton. I hope this is the right channel to ask questions: Is there a docu about access permissions? It seems to me all new users are allowed to access all menu items (except adminstration) by default. How can I change this? I haven't any hint.
2013-02-14 12:22 <cedk> ronaldm: thanks, could you put a comment on the tracker with your result
2013-02-14 12:22 <cedk> flo0: there is a groups field on ir.ui.menu
2013-02-14 12:23 <cedk> flo0: once filled, only member of those groups has access to the menu
2013-02-14 13:12 <ronaldm> flo0: take a look at the GNU Health access groups here: http://hg.savannah.gnu.org/hgweb/health/rev/d9090f83d480
2013-02-14 16:04 <flo0> cedk: I am a bit lost, I don't know where to apply this. To make it clear, for a new user I want to have an empty menu, and then I then, for example, I want to grant permissions to access the training module.
2013-02-14 16:05 <flo0> Is there a doc somewhere about this. I can remember there is a docu other that doc.tryton.org but I can't remember.
2013-02-14 16:05 <cedk> flo0: there is the wiki: http://wiki.tryton.org/
2013-02-14 16:06 <flo0> ronaldm: This looks interesting, but here is the same, I don't know where to put that.
2013-02-14 16:06 <cedk> flo0: but the access to menu is quiet simple, empty groups field = everybody has access, non-empty = only user in one of the group has access
2013-02-14 16:09 <flo0> And where should I put this ir.ui.menu groups field? I have to put it somewhere in a xml file? Right?
2013-02-14 16:11 <ronaldm> flo0: the Tryton admin manual: https://docs.google.com/document/d/1L4ddmKDkEgkBoqhMoovkypXxexW3i6NG7XshsrZJvZk/edit?hl=nl#heading=h.28hn1sd4051e
2013-02-14 16:14 <cedk> flo0: yes if you think it must be hardcoded
2013-02-14 17:31 <crisyelit> hi plantian
2013-02-14 17:36 <crisyelit> hello, who can guide me with creating a module in Tryton
2013-02-14 17:37 <crisyelit> in wiki and make the hello world, but I get nothing
2013-02-14 17:39 <rmu> crisyelit: the tutorial works for version 2.4
2013-02-14 17:39 <rmu> version 2.6 is different
2013-02-14 17:40 <crisyelit> I have 2.4
2013-02-14 17:40 <rmu> crisyelit: how did you install?
2013-02-14 17:41 <crisyelit> my system operation is ubuntu 12.04
2013-02-14 17:41 <crisyelit> /usr/local/lib/python2.7/dist-packages/HelloWorld
2013-02-14 17:44 <crisyelit> in this: hello.odt, hello.py, hello.xml, init_.py_, setup.py, tryton_.py_
2013-02-14 17:45 <rmu> crisyelit: how did you install tryton?
2013-02-14 17:45 <crisyelit> pip
2013-02-14 17:46 <crisyelit> pip instal tryton; pip instal trytond, pip instal trytond_module
2013-02-14 17:47 <crisyelit> install
2013-02-14 17:47 <rmu> i'm not sure where to "manually" put custom modules in this case, but probably you need to update your database for trytond to detect new modules
2013-02-14 17:47 <rmu> with trytond -d <databasename> -u all
2013-02-14 17:49 <rmu> the tutorial names the directory helloWorld (lowercase h), perhaps this makes a difference, didn't check though
2013-02-14 17:53 <crisyelit> I updated, but i can do
2013-02-14 17:54 <crisyelit> lower case letter and place
2013-02-14 17:54 <crisyelit> my english is bad, I sorry
2013-02-14 17:55 <crisyelit> I speak spanish
2013-02-14 18:01 <rmu> crisyelit: no problem, i think i understand ;-) - just for the record, trytond works, you can connect with the client, and create a db? the problem is that you don't see the hello world module in the list of available modules?
2013-02-14 18:02 <crisyelit> yes
2013-02-14 18:04 <crisyelit> I do Tryton modules to adapt to, but I do not see hello world in the list of modules to install
2013-02-14 18:05 <rmu> the files-names should be __init__.py and __tryton__.py
2013-02-14 18:06 <rmu> i read init_.py_ resp. tryton_.py_ in your post
2013-02-14 18:07 <rmu> unfortunately i have to go... ttyl
2013-02-14 18:09 <crisyelit> :'(
2013-02-14 18:10 <crisyelit> if what I wrote, but now I do, or give me an email to send you
2013-02-14 18:24 -!- crisyelit(~jhuliana@190.200.17.185) has left #tryton
2013-02-14 19:38 <crisyelit> help me, i want to make a module, in wiki that hello worlk, but did not visible in the list of module tryton
2013-02-14 19:43 <crisyelit> help me
2013-02-14 19:45 <plantian> crisyelit: You could put your module on github and then we could see it. Did you try running trytond --init=YOURMODULE ?
2013-02-14 19:59 <crisyelit> the module helloWorld is /usr/local/lib/dist-packages; my system operation ubuntu 12.04, comand gave the error
2013-02-14 19:59 <crisyelit> hi plantian
2013-02-14 19:59 <crisyelit> :-D
2013-02-14 20:16 <crisyelit> that here
2013-02-14 20:27 <plantian> crisyelit: What is the error? Can you pastebin it?
2013-02-14 20:27 <crisyelit> where do?
2013-02-14 20:28 <plantian> crisyelit: You can pastebin the message/error here -- http://paste.lisp.org/
2013-02-14 20:29 <plantian> cedk: Should migration patches be against hg.tryton.org/2.6/trytond or hg.tryton.org/trytond ?
2013-02-14 20:30 <plantian> Sorry, by migration patches I mean, the patch for the bug I reported yesterday and then for the latest bug I just reported. I made the patches against 2.6, is that wrong?
2013-02-14 20:30 <cedk> plantian: the highest version where the issue exists
2013-02-14 20:31 <plantian> cedk: Okay, well with this data set I don't think I can test trunk unless the trunk api does not differ from 2.6.
2013-02-14 20:32 <plantian> Otherwise my custom modules will all throw errors because they are installed in the data set that is being migrated.
2013-02-14 20:32 <crisyelit> sorry not get the error
2013-02-14 20:32 <cedk> plantian: don't know about your patch but it should not be too different
2013-02-14 20:33 <plantian> cedk: I think the actual patch will be the same, just testing it might be difficult.
2013-02-14 20:34 <crisyelit> http://paste.lisp.org/+2WJ5.
2013-02-14 20:36 <plantian> crisyelit: You must specify your database as a command line argument: trytond -d DBNAME --install=helloWorld
2013-02-14 20:36 <plantian> crisyelit: Maybe your trytond.conf file as well, do you know where your configuration file is?
2013-02-14 20:38 <crisyelit> etc/trytond.conf
2013-02-14 20:39 <crisyelit> http://paste.lisp.org/+2WJ6.
2013-02-14 20:42 <plantian> crisyelit: sorry my mistake --init not --install, and add in the configuration file like this: trytond -d DBNAME -c etc/trytond.conf --init=helloWorld
2013-02-14 20:44 <crisyelit> http://paste.lisp.org/+2WJ8.
2013-02-14 20:46 <plantian> crisyelit: great, so this is progress, what is the path of your module again?
2013-02-14 20:47 <crisyelit> /usr/local/lib/python2.7/dist-packages
2013-02-14 20:51 <plantian> crisyelit: Can you try this: trytond -d DBNAME -c etc/trytond.conf --init=hello
2013-02-14 20:51 <plantian> crisyelit: How did you install the module?
2013-02-14 20:54 <crisyelit> http://paste.lisp.org/+2WJ9.
2013-02-14 20:54 <crisyelit> only place it
2013-02-14 20:55 <crisyelit> the new module, just place it in the module tryton
2013-02-14 20:56 <crisyelit> /usr/local/lib/python2.7/dist-packages/helloWorld
2013-02-14 20:56 <crisyelit> copy and paster
2013-02-14 20:57 <plantian> crisyelit: okay, tryton cannot find it there you have to use python setup.py install or put it IN the modules directory
2013-02-14 20:58 <plantian> as far as i know
2013-02-14 20:59 <crisyelit> ?
2013-02-14 20:59 <crisyelit> :-(
2013-02-14 21:01 <plantian> crisyelit: I guess before that you need to find your trytond.conf file for this -- http://paste.lisp.org/+2WJ9
2013-02-14 21:03 <plantian> crisyelit: Is it here /etc/trytond.conf ?
2013-02-14 21:04 <crisyelit> yes
2013-02-14 21:05 <crisyelit> :-(
2013-02-14 21:13 <plantian> crisyelit: This is not the proper way to install modules but maybe you could do it until you get the appropriate way working -- I don't know if it will work but try this: ln -s /usr/local/lib/dist-packages/helloWorld /usr/local/lib/python2.7/dist-packages/trytond-2.4.2-py2.6.egg/trytond/trytond/modules/helloWorld
2013-02-14 21:17 <crisyelit> http://paste.lisp.org/+2WJA.
2013-02-14 21:19 <plantian> crisyelit: Does this directory exist? /usr/local/lib/python2.7/dist-packages/trytond-2.4.2-py2.6.egg/trytond/modules/helloWorld
2013-02-14 21:20 <crisyelit> yes
2013-02-14 21:21 <crisyelit> i send a picture as
2013-02-14 21:25 <plantian> crisyelit: Okay, so your module is at "/usr/local/lib/python2.7/dist-packages/trytond-2.4.2-py2.6.egg/trytond/modules/helloWorld" and not here "/usr/local/lib/python2.7/dist-packages/helloWorld"?
2013-02-14 21:25 <plantian> crisyelit: I think you need to get your setup.py to work and run python setup.py install.
2013-02-14 21:27 <crisyelit> no," /usr/local/lib/python2.7/dist-packages/helloWorld"
2013-02-14 21:28 <crisyelit> as i send a picture so you can see the file
2013-02-14 21:33 <crisyelit> sorry but I have to go now, tomorrow we go?
2013-02-14 21:33 <plantian> crisyelit: Sure
2013-02-14 21:34 <plantian> crisyelit: Talk to you then.
2013-02-14 21:34 <crisyelit> thank you
2013-02-14 21:35 -!- crisyelit(~jhuliana@190.200.17.185) has left #tryton
2013-02-14 23:35 <plantian> Any thoughts on theses errors seen in the client after logging in for the first time after migrating from 1.8 to 2.6? I believe I have old records somewhere but it is not clear where: https://gist.github.com/ianjosephwilson/4957035
2013-02-14 23:35 <plantian> What relationship stores the windows you last had open?
2013-02-14 23:36 <cedk> plantian: none
2013-02-14 23:36 <cedk> plantian: but on the user you can define default action to run
2013-02-14 23:37 <plantian> I thought that was maybe it but it seems to crash before it gets those out of the preferences.
2013-02-14 23:37 <plantian> ie. It seems that prefs is None instead of prefs['actions'] having actions.
2013-02-14 23:38 <cedk> plantian: strange but it was migrating from a many2one to a list
2013-02-14 23:39 <plantian> cedk: I don't understand. Is this the table? res_user-ir_action
2013-02-14 23:39 <cedk> plantian: yes
2013-02-14 23:40 <plantian> It is empty.
2013-02-14 23:41 <plantian> What does the user.action column do?
2013-02-14 23:44 <plantian> The act_window errors happen first so it seems like those probably cause the prefs.get('actions', []) error.

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