2
0
Commit Graph

242 Commits

Author SHA1 Message Date
JordiMForgeFlow
c0a3318da9 account_asset_management: fix group_assets sorting 2022-12-24 00:42:22 +01:00
Stefan Rijnhart
9352bd825c [FIX] account_asset_management: don't set class attributes in reporting
Also, actually generate report in test plus other tests to make it to the
codecov target
2022-12-24 00:42:22 +01:00
Luc De Meyer
e4796d3bd5 [IMP] account_asset_management: Add reporting 2022-12-24 00:42:22 +01:00
JordiMForgeFlow
0d332ba006 [13.0][account_asset_management]: add user error when creating asset from bill 2022-12-24 00:42:22 +01:00
OCA-git-bot
77426303c9 account_asset_management 14.0.1.0.4 2022-12-24 00:42:22 +01:00
Stefan Rijnhart
a492122458 [FIX] account_asset_mamagement: set invoice date
Adapt to https://github.com/odoo/odoo/commit/fcaa54939e, which prevents
setting a default invoice date for purchase documents
2022-12-24 00:42:22 +01:00
Yves Le Doeuff
2a26034fab Translated using Weblate (French (France))
Currently translated at 97.9% (189 of 193 strings)

Translation: account-financial-tools-14.0/account-financial-tools-14.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_asset_management/fr_FR/
2022-12-24 00:42:22 +01:00
OCA-git-bot
7887680bb1 account_asset_management 14.0.1.0.3 2022-12-24 00:42:22 +01:00
Ivan Yelizariev // IEL
dbf86cf569 [FIX] account_asset_management: correct field name 2022-12-24 00:42:22 +01:00
Yves Le Doeuff
1a640124f4 Translated using Weblate (French)
Currently translated at 98.9% (191 of 193 strings)

Translation: account-financial-tools-14.0/account-financial-tools-14.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_asset_management/fr/
2022-12-24 00:42:22 +01:00
Yves Le Doeuff
e4adbb0850 Translated using Weblate (French)
Currently translated at 95.8% (185 of 193 strings)

Translation: account-financial-tools-14.0/account-financial-tools-14.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_asset_management/fr/
2022-12-24 00:42:22 +01:00
OCA-git-bot
f94e33a2be account_asset_management 14.0.1.0.2 2022-12-24 00:42:22 +01:00
OCA-git-bot
4abc44c56e [UPD] README.rst 2022-12-24 00:42:22 +01:00
Víctor Martínez
4e31113bbe [FIX] account_asset_management: Fix onchange account_id and asset_profile_id to prevent account_id is empty in some use cases 2022-12-24 00:42:22 +01:00
Pedro M. Baeza
1620d3a4d8 [FIX] account_asset_management: Missing field renaming
type > move_type, due to uncovered code.
2022-12-24 00:42:22 +01:00
Bosd
bfdda99bf9 Translated using Weblate (Dutch)
Currently translated at 59.0% (114 of 193 strings)

Translation: account-financial-tools-14.0/account-financial-tools-14.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_asset_management/nl/
2022-12-24 00:42:21 +01:00
OCA-git-bot
80e7f7c95b [UPD] README.rst 2022-12-24 00:42:21 +01:00
oca-travis
d82c9c0221 [UPD] Update account_asset_management.pot 2022-12-24 00:42:21 +01:00
João Marques
dd7e4e08df [MIG] account_asset_management: Migration to v14
TT26410
2022-12-24 00:42:21 +01:00
Pedro M. Baeza
2aa11d4e40 [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-12-24 00:42:21 +01:00
Florent de Labarre
3945771c61 [FIX] account_asset_management : empty message is posted if there are no asset 2022-12-24 00:42:21 +01:00
Dong
d57d0a48a1 Translated using Weblate (Chinese (Simplified))
Currently translated at 49.7% (96 of 193 strings)

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_asset_management/zh_CN/
2022-12-24 00:42:21 +01:00
Dong
a1a106747e Translated using Weblate (Chinese (Simplified))
Currently translated at 48.2% (93 of 193 strings)

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_asset_management/zh_CN/
2022-12-24 00:42:21 +01:00
Dong
d6d802eaf2 Translated using Weblate (Chinese (Simplified))
Currently translated at 42.0% (81 of 193 strings)

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_asset_management/zh_CN/
2022-12-24 00:42:21 +01:00
Dong
c6e1ff1576 Translated using Weblate (Chinese (Simplified))
Currently translated at 40.4% (78 of 193 strings)

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_asset_management/zh_CN/
2022-12-24 00:42:21 +01:00
Dong
9b5df9cf13 Translated using Weblate (Chinese (Simplified))
Currently translated at 39.9% (77 of 193 strings)

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_asset_management/zh_CN/
2022-12-24 00:42:21 +01:00
Dong
20b6aeeeb7 Translated using Weblate (Chinese (Simplified))
Currently translated at 39.9% (77 of 193 strings)

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_asset_management/zh_CN/
2022-12-24 00:42:21 +01:00
Pedro M. Baeza
2b360a8c27 [IMP] account_asset_management: Refinements 2022-12-24 00:42:21 +01:00
Carlos Dauden
389d82839e [IMP] account_asset_management: Improve code and translation 2022-12-24 00:42:21 +01:00
Saran440
869cc39d5e [FIX] account_asset_management - Allow editing salvage value 2022-12-24 00:42:21 +01:00
fromera
71006a184e [FIX] version
[FIX] new line

[FIX] new line

[FIX] without openupgrade

[FIX] without openupgrade

[FIX] without openupgrade

[FIX] without openupgrade

[FIX] without openupgrade
2022-12-24 00:42:21 +01:00
fromera
6d84227c16 [FIX] account_asset_management:
* multicompany error
2022-12-24 00:42:21 +01:00
Harald Panten
86301ee336 Translated using Weblate (Spanish)
Currently translated at 87.7% (171 of 195 strings)

Translation: account-financial-tools-13.0/account-financial-tools-13.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_asset_management/es/
2022-12-24 00:42:21 +01:00
Valentin Vinagre Urteaga
9f9a72f073 [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-12-24 00:42:21 +01:00
Ernesto Tejeda
a555ed9259 [FIX] account_asset_management: fix remaining_value cache miss error. 2022-12-24 00:42:21 +01:00
Valentin Vinagre Urteaga
009b0b494a [IMP] account_asset_management: Add chatter entry in invoice for generated asset 2022-12-24 00:42:21 +01:00
Valentin Vinagre Urteaga
7db3f32821 [IMP] account_asset_management: Add scheduled action for the depreciation asset entries creation. 2022-12-24 00:42:21 +01:00
Andrea
91f989be0e Fix of pre-commit: E741 ambiguous variable name 'l' 2022-12-24 00:42:21 +01:00
Quentin Groulard
e53bd5b26e [IMP] account_asset_management: Depreciation board compute upon asset confirmation 2022-12-24 00:42:21 +01:00
Ernesto Tejeda
5117722b06 [FIX] account_asset_management: Fix tests 2022-12-24 00:42:21 +01:00
Pedro M. Baeza
20078b4472 [IMP] account_asset_management: Simplify code for opening related entries
We don't need the search having the one2many field and no need also for list
comprehension having mapped operator.
2022-12-24 00:42:21 +01:00
Pedro M. Baeza
a16a456511 [FIX] account_asset_management: Avoid error
Steps to reproduce the problem:

* Go to assets view
* Group by profile
* Unfold a group and click on an asset
* Click on "Journal Entries" smart-button
* Go back to the asset list
* Click again on the same asset (or another).
* Click on "Journal Entries" smart-button

Current behavior:

Error saying "KeyError: 'profile_id'"

Expected behavior:

No error

The cause for this is that Odoo stores in the context the key `group_by` with the
value `profile_id` in the specified chain of steps. That context entry is used for
grouping records in the list, and system tries to group the journal entries also
by that field, which doesn't exists in the other model, and thus the error.

We avoided it copying the context to be passes and leaving out that entry.
2022-12-24 00:42:21 +01:00
ernestotejeda
7e9d38ef5e [MIG] account_asset_management: Migration to 13.0 2022-12-24 00:42:21 +01:00
ernestotejeda
bc3e0f8fa6 [IMP] account_asset_management: black, isort 2022-12-24 00:42:21 +01:00
hveficent
7791c15d76 [12.0] account_financial_tools: Lint fixing 2022-12-24 00:42:21 +01:00
Stéphane Valaeys
44c9368b2e Fixed dynamic build of the name of the view to be called when errors are found 2022-12-24 00:42:21 +01:00
Luc De Meyer
cd3bd6bbd2 [12.0][FIX]traceback when deviating FY 2022-12-24 00:42:21 +01:00
Pedro M. Baeza
e2ceca5842 [FIX] account_asset_management: Fix tests on leap year
It's bad idea to let dates to be variable.
2022-12-24 00:42:21 +01:00
Pedro M. Baeza
ee1087d1b4 [MIG] account_asset_management: Handle account_asset_analytic migration
Only field renaming is needed.
2022-12-24 00:42:21 +01:00
Rodrigo Macedo
a028330f9f Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (200 of 200 strings)

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_asset_management/pt_BR/
2022-12-24 00:42:21 +01:00
Pedro M. Baeza
e236708977 [MIG] account_asset_management: Handle account_asset_disposal migration 2022-12-24 00:42:21 +01:00
Iván Todorovich
6673fcab25 [12.0][FIX][account_asset_management] local variable 'asset' referenced before assignment
tools/account_asset_management/models/account_asset.py", line 970, in _compute_entries
    % (asset.name, asset.code) or asset.name
UnboundLocalError: local variable 'asset' referenced before assignment
2022-12-24 00:42:21 +01:00
Joan Sisquella
f8af00f03a [ADD] allows setting a depreciation ending date 2022-12-24 00:42:21 +01:00
Saran
bbe959c783 [ADD] options 'use_leap_years' 2022-12-24 00:42:21 +01:00
Saran
181d7f2f83 [12.0][IMP] account_asset_management 2022-12-24 00:42:21 +01:00
Rodrigo Macedo
ecc57559a3 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (193 of 193 strings)

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_asset_management/pt_BR/
2022-12-24 00:42:21 +01:00
Pedro M. Baeza
dab2a897b4 [MIG+FIX+IMP] account_asset_management: Rework migration scripts + make asset group m2m 2022-12-24 00:42:21 +01:00
Henrik Norlin
05e3fa1033 [IMP] removed type, parent_id, parent_path, child_ids from account.asset & account.asset.profile 2022-12-24 00:42:21 +01:00
Henrik Norlin
13010ee95a [MIG] 11.0 account_asset to 12.0 account_asset_management 2022-12-24 00:42:21 +01:00
Pedro M. Baeza
095a205ab1 [FIX] account_asset_management: Don't depend on account.fiscal.year created records
* There's no need of forcing to create such records if your fiscal years are regular ones.
* FY date range computation duplicates code that is already on core.
* DummyFY is a good idea, but was not used at all. Now it is.
2022-12-24 00:42:21 +01:00
Luc De Meyer
fabe61b412 [FIX][12.0]asset_management - fix date string compare 2022-12-24 00:42:21 +01:00
Pedro M. Baeza
66f3c3198a [FIX] account_asset_management: Invisible conditions must be independent from extra method_time values
If not, added methods won't hide these fields.
2022-12-24 00:42:21 +01:00
Pedro M. Baeza
68509d7386 [FIX] account_asset_management: Provide hook _compute_depreciation_amount_per_fiscal_year
This way, other method_time mechanism like localization ones is able to overwrite it.

You also got an error of variable `number` not set due to previous code. Although no
alternate implementation for a new method_time, now you don't have any error,
fallbacking to standard proportional repartition.
2022-12-24 00:42:21 +01:00
Josep M
8b376f3b88 Translated using Weblate (Spanish)
Currently translated at 91.8% (179 of 195 strings)

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_asset_management/es/
2022-12-24 00:42:21 +01:00
Valaeys Stéphane
301132ed0b Translated using Weblate (French)
Currently translated at 100.0% (195 of 195 strings)

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_asset_management/fr/
2022-12-24 00:42:21 +01:00
Eduardo Aparicio
cbad3cc41c Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (195 of 195 strings)

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_asset_management/pt_BR/
2022-12-24 00:42:21 +01:00
Eduardo Aparicio
6d67542dd2 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (197 of 197 strings)

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_asset_management/pt_BR/
2022-12-24 00:42:21 +01:00
Marcel Savegnago
476e4987a0 Translated using Weblate (Portuguese (Brazil))
Currently translated at 40.1% (79 of 197 strings)

Translation: account-financial-tools-12.0/account-financial-tools-12.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_asset_management/pt_BR/
2022-12-24 00:42:21 +01:00
Henrik
61d5a0b076 [12.0][FIX] account_asset_management: date_range -> account_fiscal_year, account_analytic_id without domain 2022-12-24 00:42:21 +01:00
Bejaoui Souheil
8fa0de5226 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-12-24 00:42:21 +01:00
Maxence Groine
9ff14512da Included PR #828 Fix computation of depreciation lines when having multiple assets in invoice 2022-12-24 00:42:21 +01:00
Maxence Groine
08907b0b1d account_asset_management: Add unit test for invoices with multiple assets 2022-12-24 00:42:21 +01:00
Henrik Norlin
886abfe610 [MIG] account_asset_management: Migration to 12.0 2022-12-24 00:42:21 +01:00
Stéphane Bidoul (ACSONE)
0cece3a4b7 [IMP] asset mgt: use exclude manifest key
This is now supported natively by Odoo 11.
2022-12-24 00:42:20 +01:00
Akim Juillerat
a7cdfdd14d [MIG] account_asset_management: Migration to 11.0 2022-12-24 00:42:20 +01:00
Luc De Meyer
49d1c36679 [FIX] account_asset_management: Test data + onchange 2022-12-24 00:42:20 +01:00
Akim Juillerat
163eb03e63 [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
2022-12-24 00:42:20 +01:00
Luc De Meyer
7c76c17231 [10.0][MIG]account_asset_management suite refactoring + 10.0 port 2022-12-24 00:42:20 +01:00
Stéphane Bidoul
91d51837b4 [UPD] prefix versions with 8.0 2022-12-24 00:42:20 +01:00
Adrien Peiffer (ACSONE)
2bce9d2b24 [FIX][account_asset_management] Avoid to select closed or cancelled analytic account 2022-12-24 00:42:20 +01:00
Stéphane Bidoul
56f432386c [FIX] account_asset_management: do not propose special and closed periods for asset posting 2022-12-24 00:42:20 +01:00
Adrien Peiffer (ACSONE)
14954c5360 [FIX][account_asset_management] Add items on affects fields list 2022-12-24 00:42:20 +01:00
Adrien Peiffer (ACSONE)
08c4e9d457 [ADD][account_asset_management] Add check on account move line 2022-12-24 00:42:20 +01:00
luc-demeyer
16d05b1397 analytic enhancement 2022-12-24 00:42:20 +01:00
luc-demeyer
7b422b6c18 account_asset_management: group invoice lines fix 2022-12-24 00:42:20 +01:00
luc-demeyer
2ba8b47612 [IMP] account_asset_management: code cosmetics 2022-12-24 00:42:20 +01:00
Adrien Peiffer (ACSONE)
b963cc17ee [IMP][account_asset_management] Define a list of move's fields that can't be modified if a move is linked with a depriciation line
[IMP][account_asset_management] Define FIELDS_AFFETCS_ASSET_MOVE as a set directly
2022-12-24 00:42:20 +01:00
Stéphane Bidoul
e9bbf96a9a [IMP] account_asset_management: use reload_on_button instead of reloading page 2022-12-24 00:42:20 +01:00
Stefan Rijnhart
193f56c6ae [FIX] Inherited model is a transient model 2022-12-24 00:42:20 +01:00
Leonardo Pistone
7d224b3c4e make *asset* installable again 2022-12-24 00:42:20 +01:00
Romain Deheele
7bd04de5ac [FIX] test floats with assertAlmostEqual
[UPD] add places arg in assertAlmostEqual tests

[UPD] flake clean
2022-12-24 00:42:20 +01:00
Leonardo Pistone
99560a0cb9 move account_asset_management* out of __unported__
add asset management modules

asset mgt update

redo

synch asset mgt with recent V7 changes
2022-12-24 00:42:20 +01:00