-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
[16.0][FW] procurement_auto_create_group: partial ports of #1821 #2157
Conversation
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.
fa18ad8
to
9993236
Compare
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): |
There was a problem hiding this comment.
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.
/ocabot merge minor |
On my way to merge this fine PR! |
This PR has the |
Congratulations, your PR was merged at 839557b. Thanks a lot for contributing to OCA. ❤️ |
Port commits related to
procurement_auto_create_group
from the following PR from 14.0 to 16.0:Required by: