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