On Thursday, May 29, 2014 6:20:37 PM UTC+1, Sergi Almacellas Abellana wrote:
 

> If it's an existing database you must update a module (whatever you want) 
> in order to refresh the module list. 
>
> After updating new modules will appear and you can install them.
>
> Also you can install it from comanline with:
>
> trytond -d <database> -i <module>
>
>
Thanks Sergi, having the command line helped me to find a problem. I have 
made some progress now, but still have another problem...

My first mistake was that I had added the new hello_world folder and files 
to path [1]. This was incorrect, I should have used [2]. I did not install 
Tryton myself, it had previously been installed by a colleague so I do not 
understand why tehre are two copies on my sever.

So when I copied the files from [1] to [2] and ran the command line 
trytond -d <database> -i <module>
it installed OK. I then reloaded the menu in the Tryton client and Hello 
World appeared on the tree view. :)

I then followed "*Step 2: Extending our model and adding views*" in [3] and 
ran the command line again and reload menu.
Now I get two levels of tree menu for Hello World, as expected. But when I 
click on the menu item to launch teh Hello World form tab I get an 
Application Error:
<<
Error: 'hello.hello'
Traceback (most recent call last):
  File "/dist-packages/trytond/protocols/jsonrpc.py", line 123, in 
_marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/dist-packages/trytond/protocols/jsonrpc.py", line 156, in _dispatch
    res = dispatch(*args)
  File "/dist-packages/trytond/protocols/dispatcher.py", line 151, in 
dispatch
    obj = pool.get(object_name, type=object_type)
  File "/dist-packages/trytond/pool.py", line 168, in get
    return self._pool[self.database_name][type][name]
KeyError: 'hello.hello'
>>

I have checked all my code against [3] and cannot see any problems.

Can you please help me to understand what is going wrong here?

[1] /usr/share/pyshared/trytond/modules/
[2] /usr/lib/python2.7/dist-packages/trytond/modules
[3] https://code.google.com/p/tryton/wiki/HelloWorld

Many thanks,
Paul

Reply via email to