Skip to content
Snippets Groups Projects
Commit 1f881ab5 authored by althaf shaik's avatar althaf shaik
Browse files

[FIX] stock: return empty recordset if no rule found


When _get_rule does not find any rule, it returns False. This
could create some tracebacks as we mostly expect a stock.rule.

It will give:
if False in <recordset>:
Hence a traceback:
TypeError: unsupported operand types in: False in stock.rule()

By applying these changes will resolve this issue.

Sentry-4206998573

closes odoo/odoo#123151

X-original-commit: d6a0b981
Signed-off-by: default avatarAdrien Widart (awt) <awt@odoo.com>
parent 3ac86c0a
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment