On 07 Apr 12:25, Carlos Augusto Guerra Carneiro wrote: > > > 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. > > 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?
You should check the name of the model to be sure there is not a typo. -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpoxRrHkrsNy.pgp
Description: PGP signature
