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

chat.freenode.net #tryton log beginning Thu Feb 14 00:00:02 CET 2013
crisyelit1hola a todos01:17
crisyelit1hi every all01:17
crisyelit1hi all01:19
crisyelit1quien puede explicarme como crear un modulo; who can tell me how to create a module01:20
plantiancrisyelit1: What version of tryton are you using?01:30
plantian*trytond01:30
crisyelit12.601:31
crisyelit1plantian, you can help01:32
crisyelit1?01:32
crisyelit1i sorry, is 2.401:34
crisyelit1plantian, this are you?01:38
crisyelit1here is you?01:38
plantianI am using 2.6, but 2.4 is similar.01:38
crisyelit1I sorry my english is bad01:39
crisyelit1no, is 2.401:39
crisyelit1I understand01:39
crisyelit1:-D01:39
plantiancrisyelit1: no problem, the best approach is to find a simple official module in 2.4 and write similar code01:42
crisyelit1i need to do some modules, but not; I made the hello world; but something bad01:42
crisyelit1ok01:42
plantiancrisyelit1: The hello world on the wiki?01:42
crisyelit1yes01:42
plantiancrisyelit1: So you created a basic module.  Did you get it installed?01:43
crisyelit1no01:44
crisyelit1follow the steps, but not see in tryton01:44
crisyelit1:-(01:47
plantiancrisyelit1: hold on let me start my client01:49
plantiancrisyelit1: Do you see it in Administration > Modules ?01:49
crisyelit1yes01:50
plantiancrisyelit1: What happens when you open your module and try to mark your module for installation?01:50
crisyelit1there should be the new module, but not see01:51
crisyelit1not see new modulo01:51
crisyelit1:'(01:52
plantiancrisyelit1: I understand, where is your module with respect to your trytond/modules directory?01:53
plantiancrisyelit1: 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.01:56
crisyelit1my system operation is ubuntu 12.04; /usr/local/lib/python2.7/dist-packages/trytond_sucursal-2.4.1-py2.6.egg01:56
plantiancrisyelit1: Does your module have a setup.py file?01:57
crisyelit1no02:05
crisyelit1my module no have a setup.py file02:06
plantiancrisyelit1: 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"02:08
plantiancrisyelit1: This setup.py is a simple version of this file -- http://hg.tryton.org/2.4/modules/stock/file/79360ff546ff/setup.py02:08
crisyelit1I can use that, work in my module02:10
plantiancrisyelit1: ?02:14
plantiancrisyelit1: The 'entry_points=' will make tryton show your module.02:14
crisyelit1did the setup.py my modules02:21
plantiancrisyelit1: I don't understand.  Did you try the setup.py file?  Where is your helloWorld directory?02:25
crisyelit1but do not see it02:25
crisyelit1/usr/local/lib/python2.7/dist-packages/trytond_sucursal-2.4.1-py2.6.egg/trytond/modules/sucursal/setup.py02:26
plantiancrisyelit1: I don't think you will need the setup.py if the module is there, sorry I could not tell where your module was.02:29
plantiancrisyelit1: You can try to install your module from the command line.02:30
plantiancrisyelit1: You can try running: trytond -c CONFIG_FILE -d DBNAME --init=YOUR_MODULE_NAME02:31
crisyelit1hello worlk module for branch change it but everything inside is equal02:31
plantiancrisyelit1: Another thing to check is if there are messages about your module when you start trytond.02:33
plantiancrisyelit1: I have to go but I will be back later, sorry I have not been able to help.02:33
crisyelit1mistake gave the command you gave me02:37
crisyelit1IOError: [Errno 2] No such file or directory: 'setup-py'02:37
-!- crisyelit1(~jhuliana@181-183-191-3.genericrev.telcel.net.ve) has left #tryton02:39
cedkcould someone have also a look at https://bugs.tryton.org/issue300311:52
-!- scrapper(~scrapper@88.117.159.6) has left #tryton12:01
ronaldmcedk, on Windows XP running Microsoft security essentials I did not detect anything. I even extracted the files, still nothing12:15
ronaldmcedk, I will try on different machine with Avira12:15
ronaldmcedk, the installer file works fine as well12:15
-!- sharoonthomas(~sharoonth@122.177.165.119) has left #tryton12:16
flo0After 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.12:18
cedkronaldm: thanks, could you put a comment on the tracker with your result12:22
cedkflo0: there is a groups field on ir.ui.menu12:22
cedkflo0: once filled, only member of those groups has access to the menu12:23
ronaldmflo0: take a look at the GNU Health access groups here: http://hg.savannah.gnu.org/hgweb/health/rev/d9090f83d48013:12
flo0cedk:  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.16:04
flo0Is there a doc somewhere about this. I can remember there is a docu other that doc.tryton.org but I can't remember.16:05
cedkflo0: there is the wiki: http://wiki.tryton.org/16:05
flo0ronaldm: This looks interesting, but here is the same, I don't know where to put that.16:06
cedkflo0: but the access to menu is quiet simple, empty groups field = everybody has access, non-empty = only user in one of the group has access16:06
flo0And where should I put this ir.ui.menu groups field? I have to put it somewhere in a xml file? Right?16:09
ronaldmflo0: the Tryton admin manual: https://docs.google.com/document/d/1L4ddmKDkEgkBoqhMoovkypXxexW3i6NG7XshsrZJvZk/edit?hl=nl#heading=h.28hn1sd4051e16:11
cedkflo0: yes if you think it must be hardcoded16:14
crisyelithi plantian17:31
crisyelithello, who can guide me with creating a module in Tryton17:36
crisyelitin wiki and make the hello world, but I get nothing17:37
rmucrisyelit: the tutorial works for version 2.417:39
rmuversion 2.6 is different17:39
crisyelitI have 2.417:40
rmucrisyelit: how did you install?17:40
crisyelitmy system operation is ubuntu 12.0417:41
crisyelit/usr/local/lib/python2.7/dist-packages/HelloWorld17:41
crisyelitin this: hello.odt, hello.py, hello.xml, init_.py_, setup.py, tryton_.py_17:44
rmucrisyelit: how did you install tryton?17:45
crisyelitpip17:45
crisyelitpip instal tryton; pip instal trytond, pip instal trytond_module17:46
crisyelitinstall17:47
rmui'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 modules17:47
rmuwith trytond -d <databasename> -u all17:47
rmuthe tutorial names the directory helloWorld (lowercase h), perhaps this makes a difference, didn't check though17:49
crisyelitI updated, but i can do17:53
crisyelitlower case letter and place17:54
crisyelitmy english is bad, I sorry17:54
crisyelitI speak spanish17:55
rmucrisyelit: 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?18:01
crisyelityes18:02
crisyelitI do Tryton modules to adapt to, but I do not see hello world in the list of modules to install18:04
rmuthe files-names should be __init__.py and __tryton__.py18:05
rmui read init_.py_ resp. tryton_.py_ in your post18:06
rmuunfortunately i have to go... ttyl18:07
crisyelit:'(18:09
crisyelitif what I wrote, but now I do, or give me an email to send you18:10
-!- crisyelit(~jhuliana@190.200.17.185) has left #tryton18:24
crisyelithelp me, i want to make a module, in wiki that hello worlk, but did not visible in the list of module tryton19:38
crisyelithelp me19:43
plantiancrisyelit: You could put your module on github and then we could see it.  Did you try running trytond --init=YOURMODULE ?19:45
crisyelitthe module helloWorld is /usr/local/lib/dist-packages; my system operation ubuntu 12.04, comand  gave the error19:59
crisyelithi plantian19:59
crisyelit:-D19:59
crisyelitthat here20:16
plantiancrisyelit: What is the error?  Can you pastebin it?20:27
crisyelitwhere do?20:27
plantiancrisyelit:  You can pastebin the message/error here -- http://paste.lisp.org/20:28
plantiancedk: Should migration patches be against hg.tryton.org/2.6/trytond or hg.tryton.org/trytond ?20:29
plantianSorry, 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?20:30
cedkplantian: the highest version where the issue exists20:30
plantiancedk: Okay, well with this data set I don't think I can test trunk unless the trunk api does not differ from 2.6.20:31
plantianOtherwise my custom modules will all throw errors because they are installed in the data set that is being migrated.20:32
crisyelitsorry not get the error20:32
cedkplantian: don't know about your patch but it should not be too different20:32
plantiancedk: I think the actual patch will be the same, just testing it might be difficult.20:33
crisyelit http://paste.lisp.org/+2WJ5.20:34
plantiancrisyelit: You must specify your database as a command line argument: trytond -d DBNAME --install=helloWorld20:36
plantiancrisyelit: Maybe your trytond.conf file as well, do you know where your configuration file is?20:36
crisyelitetc/trytond.conf20:38
crisyelithttp://paste.lisp.org/+2WJ6.20:39
plantiancrisyelit: sorry my mistake --init not --install, and add in the configuration file like this: trytond -d DBNAME -c etc/trytond.conf --init=helloWorld20:42
crisyelithttp://paste.lisp.org/+2WJ8.20:44
plantiancrisyelit: great, so this is progress, what is the path of your module again?20:46
crisyelit/usr/local/lib/python2.7/dist-packages20:47
plantiancrisyelit: Can you try this: trytond -d DBNAME -c etc/trytond.conf --init=hello20:51
plantiancrisyelit: How did you install the module?20:51
crisyelithttp://paste.lisp.org/+2WJ9.20:54
crisyelitonly place it20:54
crisyelitthe new module, just place it in the module tryton20:55
crisyelit /usr/local/lib/python2.7/dist-packages/helloWorld20:56
crisyelitcopy and paster20:56
plantiancrisyelit: okay, tryton cannot find it there you have to use python setup.py install or put it IN the modules directory20:57
plantianas far as i know20:58
crisyelit?20:59
crisyelit:-(20:59
plantiancrisyelit: I guess before that you need to find your trytond.conf file for this -- http://paste.lisp.org/+2WJ921:01
plantiancrisyelit: Is it here  /etc/trytond.conf ?21:03
crisyelityes21:04
crisyelit:-(21:05
plantiancrisyelit: 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/helloWorld21:13
crisyelithttp://paste.lisp.org/+2WJA.21:17
plantiancrisyelit: Does this directory exist? /usr/local/lib/python2.7/dist-packages/trytond-2.4.2-py2.6.egg/trytond/modules/helloWorld21:19
crisyelityes21:20
crisyeliti send a picture as21:21
plantiancrisyelit: 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"?21:25
plantiancrisyelit: I think you need to get your setup.py to work and run python setup.py install.21:25
crisyelitno," /usr/local/lib/python2.7/dist-packages/helloWorld"21:27
crisyelitas i send a picture so you can see the file21:28
crisyelitsorry but I have to go now, tomorrow we go?21:33
plantiancrisyelit: Sure21:33
plantiancrisyelit: Talk to you then.21:34
crisyelitthank you21:34
-!- crisyelit(~jhuliana@190.200.17.185) has left #tryton21:35
plantianAny 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/495703523:35
plantianWhat relationship stores the windows you last had open?23:35
cedkplantian: none23:36
cedkplantian: but on the user you can define default action to run23:36
plantianI thought that was maybe it but it seems to crash before it gets those out of the preferences.23:37
plantianie. It seems that prefs is None instead of prefs['actions'] having actions.23:37
cedkplantian: strange but it was migrating from a many2one to a list23:38
plantiancedk: I don't understand.  Is this the table? res_user-ir_action23:39
cedkplantian: yes23:39
plantianIt is empty.23:40
plantianWhat does the user.action column do?23:41
plantianThe act_window errors happen first so it seems like those probably cause the prefs.get('actions', []) error.23:44

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!