Commit Graph

73 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
Kitti U
e92683f6a9 [14.0][ADD] account_asset_compute_batch 2023-01-11 17:18:50 +07: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
Saran440
b044cd643d [FIX] account_asset_management: Allow to write on moves with no asset permission
Steps to reproduce the problem:

- User (Not accountant) create an invoice.
- Create invoice plan with Deposit on 1st Invoice
- Confirm Order > Register Deposit > Create and View bills
- It throws a permission error

That's because the search on asset lines is done always for each write on the account.move
if certain fields (like the date) are written.
2022-07-07 16:15:31 +07:00
OCA-git-bot
e9b4dadadf Merge PR #1370 into 14.0
Signed-off-by rafaelbn
2022-04-05 08:08:34 +00:00
mariadforgeflow
dc6b9c6466 [IMP] account_asset_management: prevent from creating assets from tax lines 2022-04-01 09:15:10 +02:00
oca-git-bot
41a5411263 [IMP] update dotfiles 2022-03-30 21:38:04 +02:00
OCA-git-bot
9b2348fe6a Merge PR #1291 into 14.0
Signed-off-by AaronHForgeFlow
2022-02-15 12:17:27 +00: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
Jordi Ballester
af223fa53c [IMP] account_asset_management: add carry_forward_missed_depreciations 2022-02-11 18:27:09 +01:00
mariadforgeflow
0498941dfb [IMP] account_asset_management: set asset_profile_id on invoice creation 2022-02-10 19:42:29 +01:00
Víctor Martínez
bc97affc91 [IMP] account_asset_management: Add chatter + activities to assets.
TT34459
2022-02-10 16:06:34 +01:00
ps-tubtim
1e717ec453 [FIX] account_asset_management: sudo smart button asset 2022-01-20 17:59:30 +07:00
Víctor Martínez
913454fa00 [FIX] account_asset_management: Avoid the error when clicking on "Delete" button if there is a residual value and all the depreciation lines are posted.
TT32861
2021-12-15 15:08:59 +01:00
Alexis de Lattre
1ac6afe15d account_asset_management: improve and cleanup views 2021-10-31 19:47:20 +01:00
OCA-git-bot
3a0700941a Merge PR #1238 into 14.0
Signed-off-by kittiu
2021-10-01 05:04:16 +00:00
OCA-git-bot
9a64c52e79 Merge PR #1230 into 14.0
Signed-off-by kittiu
2021-09-28 16:21:42 +00:00
Kitti U
cdc7660710 [14.0][FIX] account_asset_management, singleton error on asset_count 2021-09-28 10:28:10 +07:00
Kitti U
1026b91b1a [14.0][FIX] account_asset_management, fix multi currency 2021-09-19 22:15:24 +07:00
mreficent
396c27cebe [IMP] account_asset_management: hook for asset vals 2021-09-16 15:41:12 +02:00
ps-tubtim
01e2ff0914 [ENH] account_asset_management: Add purchase value in asset report 2021-09-15 23:05:40 +07:00
ps-tubtim
8de035bcab [FIX] account_asset_management: fix _check_dates 2021-08-19 02:25:08 +07: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
32b9e1e8a4 [13.0][account_asset_management] propose account when user chooses 2021-08-16 13:49:03 +07:00
Jordi Ballester
af74e459e6 [13.0][account_asset_management] button to navigate from the vendor bill
to the asset.
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
Jairo Llopis
274f328ab4 [FIX] account_asset_management: make asset company match move's
To start, the context `company_id` is no longer used in v14. Instead, we use `with_company`.

OTOH, it doesn't make much sense because in case you have several companies enabled in your context, not necessarily your main one is gonna be the one that should be used for the asset. Instead, it should be the move company always, or consistency rules will fail.

Altered forward port of https://github.com/OCA/account-financial-tools/pull/1223.

@Tecnativa TT31311
2021-08-12 13:31:37 +01:00
mreficent
a8871debf4 [FIX] account_asset_management: create asset using Form
This way, the computes are computed as expected.
2021-05-11 18:03:15 +02:00
mreficent
a4bedab0df [FIX] account_asset_management: include 'number' method_time 2021-05-11 18:03:15 +02:00
João Marques
5e0215d678 [IMP] account_asset_management: Add analytic tags and propagate
TT28974
2021-05-11 17:19:05 +02:00
Víctor Martínez
3dc3c6f1d7 [FIX] account_asset_management: Prevent create lines with init=True when account_lock_date_update addon is installed and lock date defined 2021-05-11 15:03:06 +02:00
Víctor Martínez
bf56a67016 [FIX] account_asset_management: Fix error according to _name_search in group when try to set groups in profile 2021-05-03 08:15:12 +02:00
Víctor Martínez
30877b9a92 [FIX] account_asset_management: Fix error from group_ids in asset when set profile_id 2021-04-30 11:36:21 +02:00
OCA-git-bot
6a51c76bb9 Merge PR #1124 into 14.0
Signed-off-by StefanRijnhart
2021-04-20 17:49:12 +00:00
Luc De Meyer
940713fa53 [IMP] account_asset_management: Add reporting 2021-04-16 11:07:30 +02:00
JordiMForgeFlow
43c04753f7 [13.0][account_asset_management]: add user error when creating asset from bill 2021-04-15 16:58:53 +02:00
Víctor Martínez
8ff9f2e0fa [FIX] account_asset_management: Fix onchange account_id and asset_profile_id to prevent account_id is empty in some use cases 2021-03-11 09:18:10 +01:00
Pedro M. Baeza
e7128db342 [FIX] account_asset_management: Missing field renaming
type > move_type, due to uncovered code.
2021-01-26 15:59:48 +01: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
Florent de Labarre
9fc3c66513 [FIX] account_asset_management : empty message is posted if there are no asset 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
Valentin Vinagre Urteaga
dac8a473a9 [FIX] account_asset_management: FIX empty asset reference
If the assets are created before posting the invoice, they wouldn't have a name and the "code" field of the assets will be empty, but they would have the invoice name.
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
Valentin Vinagre Urteaga
ac121997e9 [IMP] account_asset_management: Add chatter entry in invoice for generated asset 2021-01-13 07:53:35 +00:00
Andrea
07c4a4edb1 Fix of pre-commit: E741 ambiguous variable name 'l' 2021-01-13 07:53:35 +00:00