[trunk/7.0/6.1] [account_asset] bad asset and move lines data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP R&D Addons Team 3 | ||
OpenERP Community Backports (Addons) |
New
|
Undecided
|
Unassigned |
Bug Description
Several concept errors:
1. When the asset is created from an invoice, the asset reference is assigned as the invoice number. The correct thing to do is link the invoice to the asset, and let the invoice have it's sequential number (or custom user assigned number)
2. When the asset is created manually, the reference is filled because there is no sequence or sequence type created by default at module installation. The sequence code is there, but the user has to know to create at least one sequence with the specific code set to "account.
3. When the move is created for a depreciation line, the date used is the purchase date (if asset is marked as prorata), or today. If the depreciation line already has a date, it must be used. Otherwise it is misleading for the user. The correct dates are already calculated when the depreciation lines are created. The move line creation must use those data.
4. The depreciation moves should use the default journal sequence for number (name), the reference (ref) can have some info about the asset and the depreciation line. The same applies for the move lines.
Related branches
- xavi (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 103 lines (+10/-9)4 files modifiedaccount_asset/account_asset.py (+5/-5)
account_asset/account_asset_invoice.py (+2/-2)
account_asset/account_asset_view.xml (+1/-0)
account_asset/report/account_asset_report.py (+2/-2)
Changed in openobject-addons: | |
importance: | Undecided → Low |
status: | New → Confirmed |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
tags: | added: asset |
Hello,
1. so you must take in care asset comes from supplier invoice and needs keep a ref, supplier invoices dont get a seq number it comes from account move related (you can check action_number method in invoice).
2. Always you need to setup the modules, remember its an ERP system, the complex stage is configuration.
3. There is a reported bug around you can check it for more details.
4. i check the depreciation and moves are numbered with sequence defined in journal.
Regards,