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

[FIX] sale_order_type: Default value check company #1894

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

hildickethan
Copy link
Member

@hildickethan hildickethan commented Jan 31, 2022

This could pick an incorrect type for the order's company when creating as Superuser

Only started happening after the recent changes in #1884, I assume it's due to the check_company added to the field
After those changes a cron job that created sale orders in multiple companies (as superuser) would end up always picking a sale_order_type for the 1st company by default and would error when trying to create any order for other companies

With this change in default it returns to picking an appropriate type

This could pick an incorrect type for the order's company when creating as Superuser
@pedrobaeza pedrobaeza added this to the 14.0 milestone Jan 31, 2022
@pedrobaeza
Copy link
Member

Fast-tracking as obvious patch:

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 14.0-ocabot-merge-pr-1894-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit cb4fbc6 into OCA:14.0 Jan 31, 2022
@OCA-git-bot
Copy link
Contributor

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

@hildickethan hildickethan deleted the 14.0-order_type_company branch January 31, 2022 16:15
@pedrobaeza
Copy link
Member

Backported to v13 in 23c5e59

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.

3 participants