Commit Graph

24 Commits

Author SHA1 Message Date
OCA-git-bot
a7359f6566 Merge PR #1513 into 14.0
Signed-off-by alexis-via
2023-03-09 16:37:40 +00:00
KNVx
362bb6cba1 [FIX] account_asset_management: Poor performance updating assets massively
When updating assets massively the performance when searching for deprecation_lines_ids is very low.
It is a difficult problem to detect since massive asset updates are not common.
Indexing in this field dramatically improves the timing performance.
For example, to update 3000 records it took 30 sec. With this index it takes to 2 seconds.
2022-12-01 16:49:40 +01:00
Alexis de Lattre
ccc5d0b27e [IMP] account_asset_management: big code cleanup
Use fields.Monetary() instead of fields.Float()
Use odoo's compare and round methods for floats
Add check_company=True where relevant
Stop using "Account" decimal precision... it doesn't exist any more!
Replace compute() by _convert() for currency conversion
2022-11-29 23:50:23 +01:00
Jordi Ballester
2adb6db29c [IMP] account_asset_management: Allow to reverse the posting of a depreciation line
instead of deleting the journal entry.
This will be done when the company has activated the inalterability hash
on the original journal entry.
2022-02-11 18:27:09 +01:00
Alexis de Lattre
1ac6afe15d account_asset_management: improve and cleanup views 2021-10-31 19:47:20 +01:00
ps-tubtim
35e8d092c2 [14.0][FIX] account_asset_management: pre-commit 2021-08-16 13:49:03 +07:00
Mateu Griful
756d70b971 [13.0][account_asset_management] propose account when user chooses 2021-08-16 13:49:03 +07:00
Jordi Ballester
cde49822f3 [13.0][fix][account_asset_management] display only accounts associated
to the current company.
2021-08-16 13:49:03 +07:00
João Marques
5e0215d678 [IMP] account_asset_management: Add analytic tags and propagate
TT28974
2021-05-11 17:19:05 +02:00
João Marques
a88ea6e7bf [MIG] account_asset_management: Migration to v14
TT26410
2021-01-14 07:53:25 +00:00
Pedro M. Baeza
ff25e6269e [FIX] account_asset_management: Proper asset unlink + move unlink
2 related fixes:

- When removing an asset line depreciation move, we have to pass it
  first to draft, or we won't be able to remove it even with the
  context.
- When removing a move, the check for removing the linked asset should
  be only for purchase documents, not for "not sale" documents.
2021-01-13 07:53:36 +00:00
Pedro M. Baeza
9223c6d060 [IMP] account_asset_management: Refinements 2021-01-13 07:53:36 +00:00
Carlos Dauden
a845cd2acf [IMP] account_asset_management: Improve code and translation 2021-01-13 07:53:36 +00:00
Saran440
eb628e8fa8 [FIX] account_asset_management - Allow editing salvage value 2021-01-13 07:53:36 +00:00
Ernesto Tejeda
6ee118f8bc [FIX] account_asset_management: fix remaining_value cache miss error. 2021-01-13 07:53:35 +00:00
ernestotejeda
49e6643094 [MIG] account_asset_management: Migration to 13.0 2021-01-13 07:53:35 +00:00
ernestotejeda
22b491e1c0 [IMP] account_asset_management: black, isort 2021-01-13 07:53:35 +00:00
Saran
66f345e2f3 [12.0][IMP] account_asset_management 2021-01-13 07:53:35 +00:00
Luc De Meyer
cbc0669189 [FIX][12.0]asset_management - fix date string compare 2021-01-13 07:53:35 +00:00
Maxence Groine
ab00fb24bd Included PR #828 Fix computation of depreciation lines when having multiple assets in invoice 2021-01-13 07:53:34 +00:00
Henrik Norlin
637b1fa013 [MIG] account_asset_management: Migration to 12.0 2021-01-13 07:53:34 +00:00
Akim Juillerat
b08d477d8f [MIG] account_asset_management: Migration to 11.0 2021-01-13 07:53:34 +00:00
Akim Juillerat
c7380f6453 [FIX+IMP] account_asset_management: 2 things:
* Fix compute methods dependencies and small optimizations
* Rename demo file to test and move it into the right folder
2021-01-13 07:53:34 +00:00
Luc De Meyer
a1650a3028 [10.0][MIG]account_asset_management suite refactoring + 10.0 port 2021-01-13 07:53:34 +00:00