Em sábado, 5 de abril de 2014 19h05min02s UTC-3, Cédric Krier escreveu:
>
> On 05 Apr 14:47, Carlos Augusto Guerra Carneiro wrote: 
> > File "/opt/tryton/tryton/gui/window/view_form/view/list.py", line 709, 
> in 
> > __sig_switch 
> >     if not self.screen.row_activate() and self.children_field: 
> > 
> >   File "/opt/tryton/tryton/gui/window/view_form/screen/screen.py", line 
> > 337, in default_row_activate 
> >     }, context=self.context.copy(), warning=False) 
> > 
> >   File "/opt/tryton/tryton/action/main.py", line 174, in exec_keyword 
> >     Action._exec_action(action, data, context=context) 
> > 
> >   File "/opt/tryton/tryton/action/main.py", line 137, in _exec_action 
> >     tab_domain=tab_domain) 
> > 
> >   File "/opt/tryton/tryton/gui/window/window.py", line 33, in create 
> >     limit=limit, search_value=search_value, tab_domain=tab_domain) 
> > 
> >   File "/opt/tryton/tryton/gui/window/form.py", line 113, in __init__ 
> >     search_value=search_value, tab_domain=tab_domain) 
> > 
> >   File "/opt/tryton/tryton/gui/window/view_form/screen/screen.py", line 
> 59, 
> > in __init__ 
> >     if not MODELACCESS[model_name]['write']: 
> > 
> >   File "/opt/tryton/tryton/common/common.py", line 157, in __getitem__ 
> >     idx = self._models.index(model) 
>
> That's probably because you defined a action window on a Model that you 
> did not registered in the Pool. 
>
> PS: Please don't top-post on this mailing list, see 
> http://groups.tryton.org/netiquette 
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

Thanks Cedric, i did this.

  Pool.register(
        Party,
        User,
        Company,
        Account,
        Financial,
        Receivable,
       * Payable, *
        module='academy', type_='model'
    )

 The unique class i'm using to define a action window is Payable. Do you 
have another solution?

 

Reply via email to