-
-
Notifications
You must be signed in to change notification settings - Fork 776
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
Open
carlos-lopez-tecnativa
wants to merge
181
commits into
OCA:18.0
Choose a base branch
from
Tecnativa:18.0-mig-account_asset_management
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[18.0][MIG] account_asset_management: Migration to version 18.0 #2021
carlos-lopez-tecnativa
wants to merge
181
commits into
OCA:18.0
from
Tecnativa:18.0-mig-account_asset_management
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
…iods for asset posting
* 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.
… multiple assets in invoice
* 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
…ar, account_analytic_id without domain
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/
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/
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/
…ount_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.
…ent from extra method_time values If not, added methods won't hide these fields.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/
Currently translated at 100.0% (259 of 259 strings) Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/es/
Currently translated at 27.0% (70 of 259 strings) Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/
Currently translated at 27.1% (70 of 258 strings) Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/it/
… Date of reversal entry
Currently translated at 46.1% (119 of 258 strings) Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/nl/
Currently translated at 100.0% (258 of 258 strings) Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/fr/
Currently translated at 100.0% (258 of 258 strings) Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/es_AR/
Currently translated at 87.2% (225 of 258 strings) Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/nl/
Currently translated at 89.1% (230 of 258 strings) Translation: account-financial-tools-16.0/account-financial-tools-16.0-account_asset_management Translate-URL: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_management/pt_BR/
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'.
carlos-lopez-tecnativa
force-pushed
the
18.0-mig-account_asset_management
branch
from
January 30, 2025 16:51
af7b030
to
fe31f2b
Compare
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
force-pushed
the
18.0-mig-account_asset_management
branch
from
January 30, 2025 16:55
fe31f2b
to
5376dd8
Compare
/ocabot migration account_asset_management |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on:
[18.0][MIG] report_xlsx_helper reporting-engine#958
Update translation from
_()
toself.env._()
.Update domain on fields related to
account.account
, usingcheck_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?.