Hi, in my case study I wrote the wrong name (red word) of the module in the
__init__ file
from trytond.pool import Pool
from .puree import Puree
def register():
Pool.register(
#lista de clases dentro del modulo
Puree,
module='sigcoop_puree', type_='model'
)
El jueves, 24 de enero de 2013 07:07:16 UTC-3, [email protected] escribió:
>
> Hi Can you please tell me what i have done wrong here: after i installed
> my custom module. and when im trying to open it. it keeps giving me this
> error
>
> files involved
> -CatalogGroup.py http://pastebin.com/mF8S8CDq
> -__init__.py http://pastebin.com/SLenUEp8
> -CatalogGroup.xml http://pastebin.com/AwRwKN38
> -tryton.cfg http://pastebin.com/VqeCgNPu
>
> the folder name is 'CatalogGroup' and is located at
>
> /usr/local/lib/python2.6/dist-packages/trytond-2.6.2-py2.6.egg/trytond/modules/
>
> using 2.6.2 trytond and
> using 2.6.1 tryton
>
> im trying to express myself as much as possible. soo i can give every info
> that could help.
>
> lastly.. i noticed by manually checking the database, its not creating the
> tables.
>
> thanks to everyone especially people in the IRC channel.
>
> ERROR:tryton.common.common: File
> "/usr/local/lib/python2.6/dist-packages/tryton-2.6.1-py2.6.egg/tryton/gui/window/view_form/view/list.py",
>
> line 732, in __sig_switch
> if not self.screen.row_activate() and self.children_field:
>
> File
> "/usr/local/lib/python2.6/dist-packages/tryton-2.6.1-py2.6.egg/tryton/gui/window/view_form/screen/screen.py",
>
> line 306, in default_row_activate
> }, context=self.context.copy(), warning=False)
>
> File
> "/usr/local/lib/python2.6/dist-packages/tryton-2.6.1-py2.6.egg/tryton/action/main.py",
>
> line 172, in exec_keyword
> Action._exec_action(action, data, context=context)
>
> File
> "/usr/local/lib/python2.6/dist-packages/tryton-2.6.1-py2.6.egg/tryton/action/main.py",
>
> line 134, in _exec_action
> icon=(action.get('icon.rec_name') or ''))
>
> File
> "/usr/local/lib/python2.6/dist-packages/tryton-2.6.1-py2.6.egg/tryton/gui/window/window.py",
>
> line 34, in create
> search_value=search_value)
>
> File
> "/usr/local/lib/python2.6/dist-packages/tryton-2.6.1-py2.6.egg/tryton/gui/window/form.py",
>
> line 115, in __init__
> readonly=bool(auto_refresh), search_value=search_value)
>
> File
> "/usr/local/lib/python2.6/dist-packages/tryton-2.6.1-py2.6.egg/tryton/gui/window/view_form/screen/screen.py",
>
> line 52, in __init__
> if not MODELACCESS[model_name]['write']:
>
> File
> "/usr/local/lib/python2.6/dist-packages/tryton-2.6.1-py2.6.egg/tryton/common/common.py",
>
> line 159, in __getitem__
> idx = self._models.index(model)
>
> list.index(x): x not in list
>
>