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

stock_location_product_restriction: correct location creation from UI #1984

Closed
wants to merge 2 commits into from

Conversation

blaskurain
Copy link

When creating a new location using Odoo's web interface any call to _compute_restriction_violation was raising an exception running SQL because self.ids was an empty list. Ensure that the list provided to the SQL sentence is never empty by injecting an otherwise transparent value.

…rom UI

When creating a new location using Odoo's web interface any call to
_compute_restriction_violation was raising an exception running SQL
because self.ids was an empty list. Ensure that the list provided to
the SQL sentence is never empty by injecting an otherwise transparent
value.
@OCA-git-bot
Copy link
Contributor

Hi @rousseldenis, @lmignon,
some modules you are maintaining are being modified, check this out!

@rousseldenis
Copy link
Sponsor Contributor

@blaskurain There is already https://github.com/OCA/stock-logistics-warehouse/pull/1803/files

Please review that one instead.

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.

None yet

3 participants