[18.0][MIG] procurement_auto_create_group: Migration to 18.0#2355
Merged
OCA-git-bot merged 56 commits intoOCA:18.0from May 28, 2025
Merged
[18.0][MIG] procurement_auto_create_group: Migration to 18.0#2355OCA-git-bot merged 56 commits intoOCA:18.0from
OCA-git-bot merged 56 commits intoOCA:18.0from
Conversation
[UPD] Update procurement_auto_create_group.pot
Update translation files Updated by Update PO files to match POT (msgmerge) hook in Weblate.
ensure that the procurement group is only created in the procurment process. Sometimes the method _get_rule is just needed to obtain the information of the rule, and it isn't followed by the run of the procurement.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-procurement_auto_create_group Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-procurement_auto_create_group/
Currently translated at 100.0% (4 of 4 strings) Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-procurement_auto_create_group Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-procurement_auto_create_group/fr/
Currently translated at 100.0% (4 of 4 strings) Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-procurement_auto_create_group Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-procurement_auto_create_group/zh_CN/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-procurement_auto_create_group Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-procurement_auto_create_group/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-procurement_auto_create_group Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-procurement_auto_create_group/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-procurement_auto_create_group Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-procurement_auto_create_group/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-procurement_auto_create_group Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-procurement_auto_create_group/
Currently translated at 100.0% (4 of 4 strings) Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-procurement_auto_create_group Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-procurement_auto_create_group/it/
Currently translated at 100.0% (4 of 4 strings) Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-procurement_auto_create_group Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-procurement_auto_create_group/pt_BR/
Do not override rule1 during setup, renamed the 2 rules.
Regroup the creation of the procurement group in a method.
When the pull flow is coming from an SO, a procurement group is already preset. When the option to auto create a procurement group, replace that procurement group by a new one.
JordiBForgeFlow
approved these changes
May 23, 2025
Contributor
|
/ocabot migration procurement_auto_create_group |
| @classmethod | ||
| def setUpClass(cls): | ||
| super().setUpClass() | ||
| cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) |
Contributor
There was a problem hiding this comment.
@AlexPForgeFlow FYI, you can also use BaeCommon class to avoid this line : https://github.com/odoo/odoo/blob/18.0/odoo/addons/base/tests/common.py#L20
rousseldenis
approved these changes
May 23, 2025
Contributor
|
/ocabot merge nobump |
Contributor
|
On my way to merge this fine PR! |
Contributor
|
Congratulations, your PR was merged at 75da0d5. Thanks a lot for contributing to OCA. ❤️ |
This file contains hidden or 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
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 to 18.0