On 2017-12-17 09:39, Cato Nano wrote:
> And here s the stacktrace
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.7/dist-packages/tryton/gui/window/view_form/view/list.py", 
> line 990, in __sig_switch
>     if not self.screen.row_activate() and self.children_field:
>   File 
> "/usr/lib/python2.7/dist-packages/tryton/gui/window/view_form/screen/screen.py",
>  line 460, in default_row_activate
>     }, context=self.context.copy(), warning=False)
>   File "/usr/lib/python2.7/dist-packages/tryton/action/main.py", line 194, in 
> exec_keyword
>     Action._exec_action(action, data, context=context)
>   File "/usr/lib/python2.7/dist-packages/tryton/action/main.py", line 154, in 
> _exec_action
>     context_domain=action['context_domain'])
>   File "/usr/lib/python2.7/dist-packages/tryton/gui/window/window.py", line 
> 26, in create
>     win = Form(model, **attributes)
>   File "/usr/lib/python2.7/dist-packages/tryton/gui/window/form.py", line 40, 
> in __init__
>     self.screen = Screen(self.model, **attributes)
>   File 
> "/usr/lib/python2.7/dist-packages/tryton/gui/window/view_form/screen/screen.py",
>  line 50, in __init__
>     if not (MODELACCESS[model_name]['write']
>   File "/usr/lib/python2.7/dist-packages/tryton/common/common.py", line 144, 
> in __getitem__
>     idx = self._models.index(model)
> ValueError: u'tributi.bolletta' is not in list

You did not register in the Pool you model in __init__.py
Also I just see that the file bolletta.py has syntax errors.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20171217183109.GA8635%40kei.

Reply via email to