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

[16.0][FW] procurement_auto_create_group: partial ports of #1821 #2157

Merged

Conversation

sebalix
Copy link
Contributor

@sebalix sebalix commented Sep 18, 2024

Port commits related to procurement_auto_create_group from the following PR from 14.0 to 16.0:

Required by:

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.
new_move_vals["group_id"] = group.id
return new_move_vals

def _prepare_auto_procurement_group_data(self):
def _prepare_auto_procurement_group_data(self, product):
Copy link
Contributor Author

@sebalix sebalix Sep 18, 2024

Choose a reason for hiding this comment

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

Any override of this method will break once merged.
In OCA, it is only overridden in procurement_auto_create_group_carrier and procurement_auto_create_group_by_product which are not yet available on 16.0.

@jbaudoux
Copy link
Contributor

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-2157-by-jbaudoux-bump-minor, awaiting test results.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit 6b0db51 into OCA:16.0 Sep 30, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@sebalix sebalix deleted the 16-port-from-14-procurement_auto_create_group branch September 30, 2024 13:58
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.

4 participants