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?.
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