[7.0/Trunk] account_asset : asset created from supplier invoice is posted on expense account
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
Hi There,
We're facing a quiet critical bug here(as it's wrong according accounting rules). Creating an asset through a supplier invoice(by choosing an asset category) are posting the amount of the invoice line in an expense account(Classe 6 for belgium) which is totally wrong as it is generating an asset. So this is the depreciation move line that should normally feed the expense account during the asset depreciation.
To reproduce :
- create a new fresh database
- install accounting and asset management module.
- create an asset category
- create a supplier invoice and chose the asset category in the invoice line
Check the expense account. The account have been charged while it should not.
Thanks for you help.
Houssine
Related branches
- Houssine (community): Approve (reviewed and tested)
- Vinay Rana (OpenERP): Pending requested
- Naresh(OpenERP): Pending requested
-
Diff: 29 lines (+7/-1)2 files modifiedaccount_asset/account_asset_invoice.py (+6/-0)
account_asset/account_asset_invoice_view.xml (+1/-1)
Changed in ocb-addons: | |
importance: | Undecided → Critical |
importance: | Critical → High |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in ocb-addons: | |
status: | New → In Progress |
Hi Chandni,
I've tested your fix. It fixed the problem!
Thanks for your help.
Regards,
Houssine