Next depreciation date doesn't estimate correctly when purchase date is different than the first date of month
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
This bug is related with assets in OpenERP v7.0. Specifically, in button 'Compute' at Depreciation Board with option 'Prorata Temporis' in asset configuration.
In this board, the next depreciation date (estimation) is based on purchase date. But, for example, in case when purchase date is 31/12/2013, next depreciation will be 1/1/14 and then 28/2/14, but from that date, next depreciation will be 28/3/14 instead of 31/3/14. Also, it exists a problem with months composed of 30 days: For example in June depreciation would be 28/6/14 instead of 30/6/14.
The estimated of next depreciation date doesn't 'respect' or not estimate correctly the final date of each month, depending if the month has 28, 30, 31 days. When February is processed, all depreciation dates are estimated based on 28 or 29, it means that since that date, estimate date ignores purchase date as beginning and replace it with 28/2 or 29/2.
As following, we show some images with the error. Both images describe the configuration and then, the error in depreciation board.
Asset configuration
http://
Depreciation board
http://
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 79 lines (+28/-6)1 file modifiedaccount_asset/account_asset.py (+28/-6)
Example of a incorrect depreciation board