It is possible to remove the type of an account when it has some balance for the current period.
This situation produces an unbalanced chart so I think we should add a validation to prevent it so we should force the user to move the balances to a different account which has a type set so the amounts won't be lost in the balance.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
...
Linked items
0
Link issues together to show that they're related.
Learn more.
On 2021-04-16 11:14, Sergi Almacellas Abellana wrote:
> We are creating sub accounts of this account and we remove the type to avoid the user posting moves to the parent account.
On 2021-04-16 12:42, Sergi Almacellas Abellana wrote:
> El 16/4/21 a les 12:15, Cédric Krier ha escrit:
> > * BalanceNonDeferral should also try to balance closed account
> > (normally they must already be balanced)
>
> How we can create such balance?
You can not be the error message will point the user that he needs to
reopen the account to balance it.
> For me we can only raise an error when closing a period which has some closed account with balance.
I think it will be too soon. Also the closing could be just temporary.
Indeed it is not the closed checkbox that must be used in such case but the end_date which already has a check when closing period and has already a proper domain.
But we still need to prevent to remove type on account with move and also closing account.