Skip to content

[18.0][MIG] procurement_auto_create_group: Migration to 18.0#2355

Merged
OCA-git-bot merged 56 commits intoOCA:18.0from
ForgeFlow:18.0-mig-procurement_auto_create_group
May 28, 2025
Merged

[18.0][MIG] procurement_auto_create_group: Migration to 18.0#2355
OCA-git-bot merged 56 commits intoOCA:18.0from
ForgeFlow:18.0-mig-procurement_auto_create_group

Conversation

@AlexPForgeFlow
Copy link
Copy Markdown
Contributor

Migration to 18.0

JordiBForgeFlow and others added 30 commits May 23, 2025 15:49
[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/
weblate and others added 11 commits May 23, 2025 15:49
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.
@rousseldenis
Copy link
Copy Markdown
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))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@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

Copy link
Copy Markdown
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LG

@simahawk
Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 994def2 into OCA:18.0 May 28, 2025
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@LoisRForgeFlow LoisRForgeFlow deleted the 18.0-mig-procurement_auto_create_group branch May 29, 2025 08:29
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.