Before the fix the check function is assigned a boolean, which causes an error when trying to call the function. After the fix the result of the check is returned. closes odoo/odoo#139407 X-original-commit: ea2798c5893373d79f70959e4501d0eef4f964b7 Signed-off-by: William André (wan) <wan@odoo.com>