-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
[17.0][MIG] procurement_mto_analytic: Migration to 17.0 #735
Open
alan196
wants to merge
24
commits into
OCA:17.0
Choose a base branch
from
Jarsa-dev:17.0-mig-procurement_mto_analytic
base: 17.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.
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
…tion and adaptation to 11.0
Currently translated at 100.0% (3 of 3 strings) Translation: account-analytic-13.0/account-analytic-13.0-procurement_mto_analytic Translate-URL: https://translation.odoo-community.org/projects/account-analytic-13-0/account-analytic-13-0-procurement_mto_analytic/es/
Currently translated at 100.0% (3 of 3 strings) Translation: account-analytic-13.0/account-analytic-13.0-procurement_mto_analytic Translate-URL: https://translation.odoo-community.org/projects/account-analytic-13-0/account-analytic-13-0-procurement_mto_analytic/ca/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-analytic-15.0/account-analytic-15.0-procurement_mto_analytic Translate-URL: https://translation.odoo-community.org/projects/account-analytic-15-0/account-analytic-15-0-procurement_mto_analytic/
Currently translated at 100.0% (4 of 4 strings) Translation: account-analytic-15.0/account-analytic-15.0-procurement_mto_analytic Translate-URL: https://translation.odoo-community.org/projects/account-analytic-15-0/account-analytic-15-0-procurement_mto_analytic/es/
Currently translated at 100.0% (4 of 4 strings) Translation: account-analytic-15.0/account-analytic-15.0-procurement_mto_analytic Translate-URL: https://translation.odoo-community.org/projects/account-analytic-15-0/account-analytic-15-0-procurement_mto_analytic/ca/
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.
Migration of
procurement_mto_analytic
Module to 17.0This Pull Request migrates the
procurement_mto_analytic
module from version 15.0 to 17.0 and updates its functionality to align with the new analytic distribution feature introduced in Odoo.Key Changes
Analytic Account to Analytic Distribution
Search Method Enhancement
search
method to support searching by analytic distribution.purchase_stock.models.stock_rule
.Procurement Flow Adjustments
Code Simplifications
account_analytic_id
.Tests Updated
Why This Change?
The migration ensures the module leverages Odoo's latest analytic distribution feature for more flexible and accurate cost tracking. It also addresses technical limitations in the previous implementation by utilizing JSON serialization to manage domains involving dictionary data.
Technical Details
purchase_order.search
, analytic distribution domains are transformed into JSON strings and back into dictionaries to prevent errors._make_po_get_domain
instock_rule.py
to handle analytic distribution using JSON serialization.Additional Changes
account_analytic_id
logic with the newanalytic_distribution
field.Impact
This migration improves the module's compatibility with Odoo 17.0, provides more robust analytic tracking, and resolves domain definition errors related to analytic distribution handling.