Trunk/7.0 account - set view inactive must handle children correctly

Bug #1088219 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 3

Bug Description

if a parent account is set inactive it must handle child accounts correctly

it is not sufficient to check if any of the child accounts has associated move lines, this must also be prohibited for the future
if not the child accounts will not show up in certain tree views. (Chart of accounts)

to reproduce- load new deb with accounting and Austrian chart
set view
60000 Summe Personalaufwand
to inactive
result all 6x child accounts remain active but do not show up in chart off account. (60000 is missing)

following possibilities
* all "child of" must be set to inactive
* the parent id of the direct children must be
** set to null
** set to the parent of the inactive account.

the user should have the choice as all possibilities are valid options.

Related branches

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Ferdinand (office-chricar) wrote :

I have to correct myself
set to null - is not a good option, because this will not allow further move lines as the child accounts do not belong to the same root account any more.

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Ferdinand,

I have checked your issue but I think you might have a missed something, If View type's account 's children's have any move line then it will raise the following warning.

"You cannot deactivate an account that contains journal items. "

For more info, I have attached the screen shot, So would you please check it and give your feedback.

Thank you!

Revision history for this message
Amit Parik (amit-parik) wrote :
Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

No i didn't miss this

I wrote "...this must also be prohibited for the future"

all children accounts remain "active" and hence can be selected AFTER the parent has been set to inactive.

you can try this
create an invoice, go to invoice line enter account - open account - open parent - set it to inactive go back and post/validate

the moves will be posted and shown correctly in journal items
but the parent account with all its children is missing in chart of accounts

Changed in openobject-addons:
status: Incomplete → New
Revision history for this message
Amit Parik (amit-parik) wrote :

Strange .. :-o feel amazed to do it..;-).

We have to check the the validate (approve ) time on invoice, If this on parent account is active or not.

Thank you! Consider it as a low Importance.

summary: - 7.0 account - set view inactive must handle children correctly
+ Trunk/7.0 account - set view inactive must handle children correctly
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.