Re: [tryton-dev] Error on creation of Chart of account from Template

2018-04-20 Thread Richmond Fiko
The COA is for West africa SYSCOHADA

Le vendredi 20 avril 2018 08:49:27 UTC, Sergi Almacellas Abellana a écrit :
> El 19/04/18 a les 23:56, Richmond Fiko ha escrit:
> > Hello,
> > 
> > I create a COA template.
> 
> Just for curiosity, for which country is the CoA?
> 
> > I install it but when I want to create a new chart of account from this 
> > template, I got this error.
> > 
> > Traceback (most recent call last):
> >   File "/trytond/wsgi.py", line 47, in dispatch_request
> > return endpoint(request, **request.view_args)
> >   File "/trytond/protocols/dispatcher.py", line 41, in rpc
> > request, database_name, *request.rpc_params)
> >   File "/trytond/wsgi.py", line 39, in auth_required
> > return wrapped(*args, **kwargs)
> >   File "/trytond/protocols/wrappers.py", line 106, in wrapper
> > return func(request, pool, *args, **kwargs)
> >   File "/trytond/protocols/dispatcher.py", line 163, in _dispatch
> > result = rpc.result(meth(*c_args, **c_kwargs))
> >   File "/trytond/wizard/wizard.py", line 287, in execute
> > return wizard._execute(state_name)
> >   File "/trytond/wizard/wizard.py", line 318, in _execute
> > result = self._execute(transition())
> >   File "/trytond/modules/account/account.py", line 1923, in 
> > transition_create_account
> > template2type=template2type)
> >   File "/trytond/modules/account/account.py", line 117, in create_type
> > assert self.parent is None
> > AssertionError
> > 
> > 
> > Can someone help me to understand it?
> 
> The type you used on the root account of your CoA has a parent set. As
> it's the type of the root account is should not have any parent set.
> 
> Hope it helps.
> 
> -- 
> Sergi Almacellas Abellana
> www.koolpi.com
> Twitter: @pokoli_srk

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/4e3be001-759c-4160-9706-5b3289d054f3%40googlegroups.com.


Re: [tryton-dev] Error on creation of Chart of account from Template

2018-04-20 Thread Sergi Almacellas Abellana
El 19/04/18 a les 23:56, Richmond Fiko ha escrit:
> Hello,
> 
> I create a COA template.

Just for curiosity, for which country is the CoA?

> I install it but when I want to create a new chart of account from this 
> template, I got this error.
> 
> Traceback (most recent call last):
>   File "/trytond/wsgi.py", line 47, in dispatch_request
> return endpoint(request, **request.view_args)
>   File "/trytond/protocols/dispatcher.py", line 41, in rpc
> request, database_name, *request.rpc_params)
>   File "/trytond/wsgi.py", line 39, in auth_required
> return wrapped(*args, **kwargs)
>   File "/trytond/protocols/wrappers.py", line 106, in wrapper
> return func(request, pool, *args, **kwargs)
>   File "/trytond/protocols/dispatcher.py", line 163, in _dispatch
> result = rpc.result(meth(*c_args, **c_kwargs))
>   File "/trytond/wizard/wizard.py", line 287, in execute
> return wizard._execute(state_name)
>   File "/trytond/wizard/wizard.py", line 318, in _execute
> result = self._execute(transition())
>   File "/trytond/modules/account/account.py", line 1923, in 
> transition_create_account
> template2type=template2type)
>   File "/trytond/modules/account/account.py", line 117, in create_type
> assert self.parent is None
> AssertionError
> 
> 
> Can someone help me to understand it?

The type you used on the root account of your CoA has a parent set. As
it's the type of the root account is should not have any parent set.

Hope it helps.

-- 
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/c3e06789-7c09-d52b-85c1-576db6c8bf6f%40koolpi.com.


[tryton-dev] Error on creation of Chart of account from Template

2018-04-20 Thread Richmond Fiko
Hello,

I create a COA template.
I install it but when I want to create a new chart of account from this 
template, I got this error.

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 47, in dispatch_request
return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 41, in rpc
request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 39, in auth_required
return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 106, in wrapper
return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 163, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/wizard/wizard.py", line 287, in execute
return wizard._execute(state_name)
  File "/trytond/wizard/wizard.py", line 318, in _execute
result = self._execute(transition())
  File "/trytond/modules/account/account.py", line 1923, in 
transition_create_account
template2type=template2type)
  File "/trytond/modules/account/account.py", line 117, in create_type
assert self.parent is None
AssertionError


Can someone help me to understand it?

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/ef2b061b-f65d-4c37-8104-d6f3379c77a6%40googlegroups.com.