Commit Graph

10 Commits

Author SHA1 Message Date
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
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
Valentin Vinagre Urteaga
ac121997e9 [IMP] account_asset_management: Add chatter entry in invoice for generated asset 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
Bejaoui Souheil
a92e32cf89 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
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
Luc De Meyer
a1650a3028 [10.0][MIG]account_asset_management suite refactoring + 10.0 port 2021-01-13 07:53:34 +00:00