summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2020-01-07 10:45:08 +0000
committerLucas Lefèvre <lul@odoo.com>2020-01-08 14:09:58 +0000
commit04bd54d0bc95a82e805230850a826e9e80e911f5 (patch)
tree908e814549ba6f7dd90109a6f45dd94d6bf7c6d4 /addons/web/static/src/js
parentd3171f2474629303d2d21f337a7b22b245f457d0 (diff)
[FIX] base: Allow to get default with auth=none
Since dae065d, model defaults are retrieved based on the env company instead of the user's company. However, for a request with auth='none', the company might not be set on the environnement (if `allowed_company_ids` is not in the context). This makes the sql query crash, trying to compare an integer to `false`. closes odoo/odoo#42951 X-original-commit: fa47b1b23a7fa09166c16aacf025cdcefcfaa9fd Signed-off-by: lul-odoo <LucasLefevre@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions