IRC logs of #tryton for Monday, 2013-01-14

chat.freenode.net #tryton log beginning Mon Jan 14 00:00:02 CET 2013
2013-01-14 03:03 -!- calbasi(~joan@14.66.14.37.dynamic.jazztel.es) has left #tryton
2013-01-14 05:34 <iamnoob> hi. im trying to add a Many2One field in res.user , but it seems its not making the Column in the database..
2013-01-14 13:04 -!- calbasi(~joan@14.66.14.37.dynamic.jazztel.es) has left #tryton
2013-01-14 17:37 <deadkenny> hi guys
2013-01-14 17:37 <deadkenny> I have an installation
2013-01-14 17:37 <deadkenny> with trytond
2013-01-14 17:37 <deadkenny> 2.6
2013-01-14 17:37 <deadkenny> when i am updating the modules
2013-01-14 17:38 <deadkenny> in the database
2013-01-14 17:38 <deadkenny> I run with this line
2013-01-14 17:38 <deadkenny> File "/usr/local/lib/python2.6/dist-packages/trytond-2.6.0-py2.6.egg/trytond/modules/__init__.py", line 156, in create_graph
2013-01-14 17:38 <deadkenny> packages.append((module, info.get('depends', []),
2013-01-14 17:38 <deadkenny> UnboundLocalError: local variable 'info' referenced before assignment
2013-01-14 17:38 <deadkenny> I have installed a wrong module?
2013-01-14 17:38 <deadkenny> TIA
2013-01-14 17:45 <cedk> deadkenny: with which command line?
2013-01-14 17:53 <deadkenny> sudo trytond -c /usr/local/tryton/etc/trytond.conf.1 -u all -d trytondb
2013-01-14 17:56 <plantian> hi guys, it seems that the states attribute on the button element in XML are no longer valid
2013-01-14 17:56 <deadkenny> the error appears in line 156
2013-01-14 17:56 <deadkenny> of trytond/modules/__init__.py
2013-01-14 17:57 <deadkenny> the code is:
2013-01-14 17:57 <deadkenny> for module in module_list:
2013-01-14 17:57 <deadkenny> try:
2013-01-14 17:57 <deadkenny> info = get_module_info(module)
2013-01-14 17:57 <deadkenny> except IOError:
2013-01-14 17:57 <deadkenny> if module != 'all':
2013-01-14 17:57 <deadkenny> raise Exception('Module %s not found' % module)
2013-01-14 17:57 <deadkenny> packages.append((module, info.get('depends', []),
2013-01-14 17:57 <deadkenny> info.get('extras_depend', []), info))
2013-01-14 17:57 <deadkenny> it seems that info is not getting info from module
2013-01-14 18:02 <corro> plantian: in 2.4, the button states are defined in the model. Here's an example: http://hg.tryton.org/modules/account_invoice/rev/48de813ee9ac#l3.45
2013-01-14 18:03 <corro> plantian: have a look at http://code.google.com/p/tryton/wiki/Migration_2_4 for a list of all API changes.
2013-01-14 18:04 <plantian> corro: Thanks, the migration does not list that change, I think it might actually be for 2.6?
2013-01-14 18:04 <plantian> corro: So the buttons are matched by name between the python model attribute and the XML forms?
2013-01-14 18:06 <plantian> I think I am getting it.
2013-01-14 18:06 <plantian> Thanks.
2013-01-14 18:06 <corro> plantian: yes. The key in the self._buttons dict and the name in the xml must be the same.
2013-01-14 18:06 <plantian> corro: I am trying to port this -- https://gist.github.com/4531457
2013-01-14 18:07 <plantian> So I must add cancel key and done key in the _button dict. Thanks.
2013-01-14 18:07 <plantian> And factor out permissions into separate xml declaration it seems. I will just follow the stock's xml.
2013-01-14 18:08 <cedk> deadkenny: probably a wrong permission on a tryton.cfg of one module
2013-01-14 18:08 <corro> plantian: yes, and don't forget about the workflow changes.
2013-01-14 18:11 <deadkenny> cedk: thanks I'm testing installing one module at a time
2013-01-14 18:36 <deadkenny> guys
2013-01-14 18:36 <deadkenny> I have a question
2013-01-14 18:36 <deadkenny> when installing tryton
2013-01-14 18:38 <deadkenny> I have unpacked the tryton.tar.gz
2013-01-14 18:38 <ivangarcia> ok
2013-01-14 18:39 <deadkenny> after configuring the database and all
2013-01-14 18:39 <deadkenny> I have register the modules right?
2013-01-14 18:39 <deadkenny> in order to them to appear
2013-01-14 18:39 <ivangarcia> yes
2013-01-14 18:39 <deadkenny> ok
2013-01-14 18:40 <deadkenny> and ...
2013-01-14 18:41 <deadkenny> the parameter of sudo trytond -c /usr/local/tryton/etc/trytond.conf.1 -u all -d trytondb
2013-01-14 18:41 <deadkenny> the -d
2013-01-14 18:41 <deadkenny> is the posgresql database for all the tryton system
2013-01-14 18:42 <deadkenny> that enables the modules for all the registered "databases" instances in that tryton system right?
2013-01-14 18:42 <deadkenny> sorry guys but I m a bit lost
2013-01-14 18:44 <ivangarcia> u don't need 'sudo' i believe
2013-01-14 18:45 <ivangarcia> the -u all will update all the modules found in the modules folder of tryton
2013-01-14 18:45 <deadkenny> yeap
2013-01-14 18:45 <ivangarcia> u can use --init=all at the first instance
2013-01-14 18:45 <ivangarcia> to generate the admin user and all that
2013-01-14 18:49 <deadkenny> thanks ivangarcia
2013-01-14 18:49 <deadkenny> I will try that as well
2013-01-14 18:49 <deadkenny> the -u all have given me an error
2013-01-14 18:49 <deadkenny> thats why I started module by module
2013-01-14 21:05 <plantian> (in the stock module) How is the complete_lines method on the Inventory model classes connected to the complete_lines button in the xml and _buttons attribute?
2013-01-14 22:51 <cedk> plantian: same name
2013-01-14 22:52 <plantian> cedk: Okay, thanks.

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