Commit Graph

27 Commits

Author SHA1 Message Date
manu
635178dafe [MIG]account_asset_management: Migration to 15.0 2022-04-19 09:20:53 +02:00
mariadforgeflow
c638b0ebf5 [IMP] account_asset_management: prevent from creating assets from tax lines 2022-04-13 10:57:58 +02:00
Jordi Ballester
728291db75 [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-04-13 10:57:58 +02:00
mariadforgeflow
1ae7737916 [IMP] account_asset_management: set asset_profile_id on invoice creation 2022-04-13 10:57:58 +02:00
ps-tubtim
a40e732d76 [FIX] account_asset_management: sudo smart button asset 2022-04-13 10:57:58 +02:00
Kitti U
b7969f1507 [14.0][FIX] account_asset_management, singleton error on asset_count 2022-04-13 10:57:58 +02:00
Kitti U
b7b4818f00 [14.0][FIX] account_asset_management, fix multi currency 2022-04-13 10:57:58 +02:00
mreficent
0c1f5c73d2 [IMP] account_asset_management: hook for asset vals 2022-04-13 10:57:58 +02:00
ps-tubtim
9c304e4db1 [14.0][FIX] account_asset_management: pre-commit 2022-04-13 10:57:58 +02:00
Jordi Ballester
2d2f37fa10 [13.0][account_asset_management] propose account when user chooses 2022-04-13 10:57:58 +02:00
Jordi Ballester
ebfeb74b50 [13.0][account_asset_management] button to navigate from the vendor bill
to the asset.
2022-04-13 10:57:58 +02:00
Jairo Llopis
3e55a011be [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
2022-04-13 10:57:58 +02:00
mreficent
cf6a9a3995 [FIX] account_asset_management: create asset using Form
This way, the computes are computed as expected.
2022-04-13 10:57:57 +02:00
João Marques
df38936ddd [IMP] account_asset_management: Add analytic tags and propagate
TT28974
2022-04-13 10:57:57 +02:00
JordiMForgeFlow
d2e5bffcae [13.0][account_asset_management]: add user error when creating asset from bill 2022-04-13 10:57:57 +02:00
Víctor Martínez
88e91435b8 [FIX] account_asset_management: Fix onchange account_id and asset_profile_id to prevent account_id is empty in some use cases 2022-04-13 10:57:57 +02:00
Pedro M. Baeza
579fe29f84 [FIX] account_asset_management: Missing field renaming
type > move_type, due to uncovered code.
2022-04-13 10:57:57 +02:00
João Marques
97d8a78f8e [MIG] account_asset_management: Migration to v14
TT26410
2022-04-13 10:57:57 +02:00
Pedro M. Baeza
35477292f6 [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.
2022-04-13 10:57:57 +02:00
Florent de Labarre
9593bff0fc [FIX] account_asset_management : empty message is posted if there are no asset 2022-04-13 10:57:57 +02:00
Valentin Vinagre Urteaga
7485740bb3 [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.
2022-04-13 10:57:57 +02:00
Valentin Vinagre Urteaga
528741b9e2 [IMP] account_asset_management: Add chatter entry in invoice for generated asset 2022-04-13 10:57:57 +02:00
ernestotejeda
ed4314c237 [MIG] account_asset_management: Migration to 13.0 2022-04-13 10:57:57 +02:00
ernestotejeda
00ef1051fb [IMP] account_asset_management: black, isort 2022-04-13 10:57:57 +02:00
Bejaoui Souheil
e7f2beb6fb Finish 12.0 migration of account_asset_management
* account_asset: Do not loop on all the lines to search for one linked asset

Before this change, the use of `mapped` on self did loop on all the move
lines that are included in self to get the assets, what could be very
costly for a simple write on a lot of move lines. As the goal is to raise
an error only if at least one move is linked to an asset, we break the
loop if the condition is fulfilled.

* performance improvement

* [RMV] - Remove useless dependency

In 12.0 account_fiscal_year is a standard feature no need to depend on oca
module account_fiscal_year
2022-04-13 10:57:56 +02:00
Akim Juillerat
93e4756698 [MIG] account_asset_management: Migration to 11.0 2022-04-13 10:57:56 +02:00
Luc De Meyer
2fe06219b6 [10.0][MIG]account_asset_management suite refactoring + 10.0 port 2022-04-13 10:57:56 +02:00