Merge lp:~cv.clearcorp/openobject-addons/6.1-account_asset into lp:openobject-addons/6.1
Status: | Needs review | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Proposed branch: | lp:~cv.clearcorp/openobject-addons/6.1-account_asset | ||||||||||||
Merge into: | lp:openobject-addons/6.1 | ||||||||||||
Diff against target: |
103 lines (+10/-9) 4 files modified
account_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) |
||||||||||||
To merge this branch: | bzr merge lp:~cv.clearcorp/openobject-addons/6.1-account_asset | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
xavi (community) | Approve | ||
OpenERP Core Team | Pending | ||
Review via email: mp+112963@code.launchpad.net |
Description of the change
From bug 1019932 description:
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.
-------
All the 4 points are corrected in this branch. We tested that it wouldn't break pre-existing assets or any functionality. But if there is something wrong please get back at us and we will be glad to fix it.
Unmerged revisions
- 6867. By Carlos Vásquez (ClearCorp)
-
[FIX] asset creation from invoice now links the invoice and uses the correct sequence for code
[FIX] module installation creates sequence and sequence type ready for use
[FIX] asset depreciation move creation now uses the correct date and period
[FIX] asset depreciation move and move lines now use more standard info for number and reference.
Please, review this merge proposal, its only a minute and it is completly necessary to have the journal right. The name of the move can't be the name of the asset. It's been more than a year.