health-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health-dev] New tab window doesn't appear


From: Kaushik
Subject: Re: [Health-dev] New tab window doesn't appear
Date: Tue, 27 Aug 2013 11:00:18 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8

Hi Luis,
I found the problem. The directory name of the module was different from the name of softlink under trytond/modules. The init.py was registering the wrong name. I registered the soft link name as the module name to the pool.
Kaushik


On Tuesday 27 August 2013 12:01 AM, Luis Falcon wrote:
Hi Kaushik
On 23/08/13 13:11, Kaushik S wrote:
Hi
    I have written my own module based on hello world. I click on the
action item under a parent menu item, I expect a new tab/window to
appear with my tree view (or form view).  However, I get an error saying
the my module is not in the list.
I am just trying to understand the initialisation.

I am posting the error below. I am guessing my module hasn't been
registered or it didnt go into one of the core lists.  How can I
troubleshoot this? Any debugging tips?.
Did you install your new module ? Do you see it under

Administration -> Modules -> Modules

Best,
Error : Mymodule.foo not in list
   File
"/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/gui/window/view_form/view/list.py",
line 733, in __sig_switch
     if not self.screen.row_activate() and self.children_field:

   File
"/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/gui/window/view_form/screen/screen.py",
line 322, in default_row_activate
     }, context=self.context.copy(), warning=False)

   File
"/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/action/main.py",
line 178, in exec_keyword
     Action._exec_action(action, data, context=context)

   File
"/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/action/main.py",
line 141, in _exec_action
     tab_domain=tab_domain)

   File
"/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/gui/window/window.py",
line 34, in create
     search_value=search_value, tab_domain=tab_domain)

   File
"/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/gui/window/form.py",
line 114, in __init__
     tab_domain=tab_domain)

   File
"/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/gui/window/view_form/screen/screen.py",
line 56, in __init__
     if not MODELACCESS[model_name]['write']:

   File
"/home/gnuhealth/.local/lib/python2.7/site-packages/tryton/common/common.py",
line 159, in __getitem__
     idx = self._models.index(model)

Thanks
Kaushik






reply via email to

[Prev in Thread] Current Thread [Next in Thread]