Commit Graph

893 Commits

Author SHA1 Message Date
fromera
bbe7543bfd [FIX] account_asset_management:
* multicompany error
2024-05-28 12:50:13 +02:00
Harald Panten
8134e58907 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/
2024-05-28 12:50:12 +02:00
Valentin Vinagre Urteaga
040cb6d6fa [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.
2024-05-28 12:50:12 +02:00
Ernesto Tejeda
99aca9cab7 [FIX] account_asset_management: fix remaining_value cache miss error. 2024-05-28 12:50:12 +02:00
Valentin Vinagre Urteaga
e9284170ac [IMP] account_asset_management: Add chatter entry in invoice for generated asset 2024-05-28 12:50:12 +02:00
Valentin Vinagre Urteaga
5d5682008f [IMP] account_asset_management: Add scheduled action for the depreciation asset entries creation. 2024-05-28 12:50:12 +02:00
Andrea
4f0feff985 Fix of pre-commit: E741 ambiguous variable name 'l' 2024-05-28 12:50:12 +02:00
Quentin Groulard
481476de81 [IMP] account_asset_management: Depreciation board compute upon asset confirmation 2024-05-28 12:50:12 +02:00
Ernesto Tejeda
a0c8a51d4e [FIX] account_asset_management: Fix tests 2024-05-28 12:50:12 +02:00
Pedro M. Baeza
51433806b3 [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.
2024-05-28 12:50:12 +02:00
Pedro M. Baeza
eff83ba8b8 [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.
2024-05-28 12:50:12 +02:00
ernestotejeda
3b0087f059 [MIG] account_asset_management: Migration to 13.0 2024-05-28 12:50:12 +02:00
ernestotejeda
1cf04b7db2 [IMP] account_asset_management: black, isort 2024-05-28 12:50:12 +02:00
hveficent
32d07555ea [12.0] account_financial_tools: Lint fixing 2024-05-28 12:50:12 +02:00
Stéphane Valaeys
88deaec033 Fixed dynamic build of the name of the view to be called when errors are found 2024-05-28 12:50:12 +02:00
Luc De Meyer
a997710035 [12.0][FIX]traceback when deviating FY 2024-05-28 12:50:12 +02:00
Pedro M. Baeza
66385b4162 [FIX] account_asset_management: Fix tests on leap year
It's bad idea to let dates to be variable.
2024-05-28 12:50:12 +02:00
Pedro M. Baeza
1a8141ec38 [MIG] account_asset_management: Handle account_asset_analytic migration
Only field renaming is needed.
2024-05-28 12:50:12 +02:00
Rodrigo Macedo
b806319941 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/
2024-05-28 12:50:12 +02:00
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
LauraCForgeFlow
d63e9f6bb5 [MIG] account_move_post_date_user: Migration to 17.0 2024-05-23 09:56:29 +02:00
LauraCForgeFlow
b5d872d4b0 [IMP] account_move_post_date_user: pre-commit auto fixes 2024-05-23 09:11:32 +02:00
mymage
16c861e7cb Translated using Weblate (Italian)
Currently translated at 100.0% (3 of 3 strings)

Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_move_post_date_user
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_move_post_date_user/it/
2024-05-23 09:04:33 +02:00
mymage
b78994fe75 Translated using Weblate (Italian)
Currently translated at 100.0% (3 of 3 strings)

Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_move_post_date_user
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_move_post_date_user/it/
2024-05-23 09:04:33 +02:00
mymage
3e5e09510e Added translation using Weblate (Italian) 2024-05-23 09:04:33 +02:00
oca-ci
c30fa663cd [UPD] Update account_move_post_date_user.pot 2024-05-23 09:04:33 +02:00
JordiMForgeFlow
0e026782dd [ADD] account_move_post_date_user 2024-05-23 09:04:33 +02:00
mymage
aed1a3371c Translated using Weblate (Italian)
Currently translated at 100.0% (177 of 177 strings)

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_spread_cost_revenue
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_spread_cost_revenue/it/
2024-05-22 11:43:36 +00:00
OCA-git-bot
da87a0985b [BOT] post-merge updates 2024-05-21 15:43:08 +00:00
oca-ci
d5ed651b5e [UPD] Update account_spread_cost_revenue.pot 2024-05-21 15:06:49 +00:00
OCA-git-bot
345b944397 Merge PR #1874 into 17.0
Signed-off-by pedrobaeza
2024-05-21 15:03:11 +00:00
OCA-git-bot
56618d2672 [BOT] post-merge updates 2024-05-21 07:53:08 +00:00
oca-ci
150aa01243 [UPD] Update account_account_tag_code.pot 2024-05-21 07:47:55 +00:00
OCA-git-bot
c333cf7770 Merge PR #1873 into 17.0
Signed-off-by pedrobaeza
2024-05-21 07:44:21 +00:00
Rodrigo Macedo
bfacabeae8 Translated using Weblate (Portuguese (Brazil))
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/pt_BR/
2024-05-17 20:38:47 +00:00