Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] account_asset_management: Migration to version 18.0 #2021

Merged
merged 181 commits into from
Mar 11, 2025

Conversation

carlos-lopez-tecnativa
Copy link

@carlos-lopez-tecnativa carlos-lopez-tecnativa commented Jan 30, 2025

Depends on:

  • [18.0][MIG] report_xlsx_helper reporting-engine#958

  • Update translation from _() to self.env._().

  • Update domain on fields related to account.account, using check_company=True and _check_company_domain = models.check_company_domain_parent_of to support company branches.

  • Update domain in record rules; the fields are required, so company=False is unnecessary.

TT54054
@Tecnativa @pedrobaeza @victoralmau @carlosdauden could you please review this?.

@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 18.0-mig-account_asset_management branch 2 times, most recently from fe31f2b to 5376dd8 Compare January 30, 2025 16:55
@pedrobaeza
Copy link
Member

/ocabot migration account_asset_management

Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code and functional review OK.

@juancarlosonate-tecnativa

Update when you can, OCA/reporting-engine#958 has already been merged, thx!

lepistone and others added 22 commits February 12, 2025 08:52
add asset management modules

asset mgt update

redo

synch asset mgt with recent V7 changes
[UPD] add places arg in assertAlmostEqual tests

[UPD] flake clean
…an'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
* Fix compute methods dependencies and small optimizations
* Rename demo file to test and move it into the right folder
This is now supported natively by Odoo 11.
sbiosca-s73 and others added 11 commits February 12, 2025 08:52
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_asset_management/
Currently translated at 42.0% (108 of 257 strings)

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_asset_management/it/
Some users may be allowed to unlink invoices without billing access,
but with current code, they are not able, as the asset line check is
done without sudo, and other users except billing or higher ones
aren't allowed to access to that model.

TT49673
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_asset_management/
Currently translated at 100.0% (256 of 256 strings)

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_asset_management/it/
Currently translated at 100.0% (256 of 256 strings)

Translation: account-financial-tools-17.0/account-financial-tools-17.0-account_asset_management
Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_asset_management/es_AR/
The Financial Assets report generates an error message where there is an asset
without depreciation table.
This is ok for most assets but not for those with method_number = 0 which
is the case for assets of type 'Land and Buildings'.
When this module is installed, it prevents the cancellation of posted journals. However, in many cases, this action is necessary—for example, in the account_asset_management module.

With this commit, the default constraint is applied only in this module's tests or when Odoo is not running in test mode.

This approach provides an alternative to avoid marking the module as rebellious.
@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 18.0-mig-account_asset_management branch from 5376dd8 to eb4a3c2 Compare February 12, 2025 13:53
@carlos-lopez-tecnativa
Copy link
Author

Update when you can, OCA/reporting-engine#958 has already been merged, thx!

Done. I rebased and removed the last commit. Thanks!

@carlos-lopez-tecnativa
Copy link
Author

@juancarlosonate-tecnativa could you please update your review?

@Saran440
Copy link
Member

Saran440 commented Mar 3, 2025

Functional Test

  1. please add this commit [16.0][ENH] account_asset_management: default salvage value on profile #1820
  2. Asset Report still mistake when we are multi-company. it still export all data [15.0][FIX] account_asset_management: report filter multi company #1912

@carlos-lopez-tecnativa
Copy link
Author

Functional Test

  1. please add this commit [16.0][ENH] account_asset_management: default salvage value on profile #1820

I created a PR for V17 to include it as well. Once this PR is merged, I will cherry-pick it to V18. Thanks.

  1. Asset Report still mistake when we are multi-company. it still export all data [15.0][FIX] account_asset_management: report filter multi company #1912

Regarding the second point, I cannot include a PR that is still open and has pending review comments. Once it is merged, it can be forward-ported to V16, V17, and V18 (if merged before, or feel free to ping me to include it).

@Saran440
Copy link
Member

@carlos-lopez-tecnativa Thanks you for your work.

I am waiting for the review after you cherry-pick #2047 into this.

This PR enables the configuration of salvage value in the asset profile.
Users can configure it with a fixed amount or a percentage of the salvage value.
@carlos-lopez-tecnativa
Copy link
Author

@carlos-lopez-tecnativa Thanks you for your work.

I am waiting for the review after you cherry-pick #2047 into this.

Done, please update your review, thanks

Copy link
Member

@Saran440 Saran440 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional Test 👍

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-2021-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit d3a7fb6 into OCA:18.0 Mar 11, 2025
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at ddc74d3. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 18.0-mig-account_asset_management branch March 11, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.