Commit Graph

251 Commits

Author SHA1 Message Date
Pedro M. Baeza
14feffc487 [MIG] account_asset_management: Handle account_asset_disposal migration 2024-05-28 12:50:12 +02:00
Iván Todorovich
92aae8bc62 [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
2024-05-28 12:50:12 +02:00
Joan Sisquella
eeb1c16a93 [ADD] allows setting a depreciation ending date 2024-05-28 12:50:12 +02:00
Saran
22282538ef [ADD] options 'use_leap_years' 2024-05-28 12:50:12 +02:00
Saran
6a63d99fd4 [12.0][IMP] account_asset_management 2024-05-28 12:50:12 +02:00
Rodrigo Macedo
3ad99f0b26 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/
2024-05-28 12:50:12 +02:00
Pedro M. Baeza
bbcf1e1cf6 [MIG+FIX+IMP] account_asset_management: Rework migration scripts + make asset group m2m 2024-05-28 12:50:12 +02:00
Henrik Norlin
da264360e6 [IMP] removed type, parent_id, parent_path, child_ids from account.asset & account.asset.profile 2024-05-28 12:50:12 +02:00
Henrik Norlin
b000e127d8 [MIG] 11.0 account_asset to 12.0 account_asset_management 2024-05-28 12:50:12 +02:00
Pedro M. Baeza
92c8f32440 [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.
2024-05-28 12:50:12 +02:00
Luc De Meyer
d147e9e3d6 [FIX][12.0]asset_management - fix date string compare 2024-05-28 12:50:12 +02:00
Pedro M. Baeza
d9f09c65ce [FIX] account_asset_management: Invisible conditions must be independent from extra method_time values
If not, added methods won't hide these fields.
2024-05-28 12:50:12 +02:00
Pedro M. Baeza
08b0239cc2 [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.
2024-05-28 12:50:12 +02:00
Josep M
2bb84c2f53 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/
2024-05-28 12:50:12 +02:00
Valaeys Stéphane
f848051253 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/
2024-05-28 12:50:12 +02:00
Marcel Savegnago
a2b0ee564a 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/
2024-05-28 12:50:12 +02:00
Henrik
2556371e9b [12.0][FIX] account_asset_management: date_range -> account_fiscal_year, account_analytic_id without domain 2024-02-13 13:44:45 +01:00
Bejaoui Souheil
ae6c15da04 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
2024-02-13 13:44:45 +01:00
Maxence Groine
984f683d59 Included PR #828 Fix computation of depreciation lines when having multiple assets in invoice 2024-02-13 13:44:45 +01:00
Maxence Groine
24a3ece487 account_asset_management: Add unit test for invoices with multiple assets 2024-02-13 13:44:45 +01:00
Henrik Norlin
e3d5115f01 [MIG] account_asset_management: Migration to 12.0 2024-02-13 13:44:45 +01:00
Stéphane Bidoul (ACSONE)
1c8774f346 [IMP] asset mgt: use exclude manifest key
This is now supported natively by Odoo 11.
2024-02-13 13:44:45 +01:00
Akim Juillerat
d0ea4ac10a [MIG] account_asset_management: Migration to 11.0 2024-02-13 13:44:45 +01:00
Luc De Meyer
cf15cc7356 [FIX] account_asset_management: Test data + onchange 2024-02-13 13:44:45 +01:00
Akim Juillerat
7d112bf691 [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
2024-02-13 13:44:45 +01:00
Luc De Meyer
eaba3e4ed5 [10.0][MIG]account_asset_management suite refactoring + 10.0 port 2024-02-13 13:44:45 +01:00
Stéphane Bidoul
c9c01e2200 [UPD] prefix versions with 8.0 2024-02-13 13:44:45 +01:00
Adrien Peiffer (ACSONE)
3afbc0f936 [FIX][account_asset_management] Avoid to select closed or cancelled analytic account 2024-02-13 13:44:45 +01:00
Stéphane Bidoul
77652ccc92 [FIX] account_asset_management: do not propose special and closed periods for asset posting 2024-02-13 13:44:45 +01:00
Adrien Peiffer (ACSONE)
e6a3741839 [FIX][account_asset_management] Add items on affects fields list 2024-02-13 13:44:45 +01:00
Adrien Peiffer (ACSONE)
9a078ee397 [ADD][account_asset_management] Add check on account move line 2024-02-13 13:44:45 +01:00
luc-demeyer
d8d0947f9b analytic enhancement 2024-02-13 13:44:45 +01:00
luc-demeyer
6385c2afbb account_asset_management: group invoice lines fix 2024-02-13 13:44:45 +01:00
luc-demeyer
fa61e02565 [IMP] account_asset_management: code cosmetics 2024-02-13 13:44:45 +01:00
Adrien Peiffer (ACSONE)
70d6bfcc6e [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
2024-02-13 13:44:45 +01:00
Stéphane Bidoul
78317f32fe [IMP] account_asset_management: use reload_on_button instead of reloading page 2024-02-13 13:44:45 +01:00
Stefan Rijnhart
9dc625e64b [FIX] Inherited model is a transient model 2024-02-13 13:44:45 +01:00
Leonardo Pistone
5c2931981a make *asset* installable again 2024-02-13 13:44:45 +01:00
Romain Deheele
b15b0d0887 [FIX] test floats with assertAlmostEqual
[UPD] add places arg in assertAlmostEqual tests

[UPD] flake clean
2024-02-13 13:44:45 +01:00
Leonardo Pistone
49bfaffa4f move account_asset_management* out of __unported__
add asset management modules

asset mgt update

redo

synch asset mgt with recent V7 changes
2024-02-13 13:44:45 +01:00
mymage
5ea265ce27 Translated using Weblate (Italian)
Currently translated at 100.0% (14 of 14 strings)

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_move_print
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_move_print/it/
2024-02-12 11:37:17 +00:00
mymage
a00bed4469 Translated using Weblate (Italian)
Currently translated at 100.0% (16 of 16 strings)

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_usability
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_usability/it/
2024-02-12 11:37:17 +00:00
mymage
9df88cdf7e Translated using Weblate (Italian)
Currently translated at 100.0% (79 of 79 strings)

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_move_template
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_move_template/it/
2024-02-12 11:37:16 +00:00
Ivorra78
d278d4075b Translated using Weblate (Spanish)
Currently translated at 100.0% (79 of 79 strings)

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_move_template
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_move_template/es/
2024-02-08 19:37:11 +00:00
mymage
114a0fd28c Added translation using Weblate (Italian) 2024-02-04 14:47:32 +00:00
mymage
cdded7cf56 Added translation using Weblate (Italian) 2024-02-04 14:47:26 +00:00
Weblate
c58592084d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_move_template
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_move_template/
2024-02-03 19:51:05 +00:00
Weblate
b5d40e9236 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_usability
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_usability/
2024-02-03 18:25:37 +00:00
OCA-git-bot
437e40b0f0 [BOT] post-merge updates 2023-12-29 15:29:22 +00:00
oca-ci
e6a7fbcbeb [UPD] Update account_usability.pot 2023-12-29 15:27:12 +00:00