summaryrefslogtreecommitdiff
path: root/addons/pos_cache/static/src/js/pos_cache.js
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2021-01-11 11:58:52 +0000
committerJeremy Kersten <jke@odoo.com>2021-01-11 12:02:00 +0000
commitabb1d35c5bcf75266ba46f94ec932b829434f28b (patch)
tree183eeb45d8e42be0e72167fc6a0a31a51011ac08 /addons/pos_cache/static/src/js/pos_cache.js
parent10c8ce2ea64197648287ac861b1e250a14bd9a70 (diff)
[FIX] website: handle MissingRecord in slug_matching
In case of record doesn't exit, raise a 404 instead of crash in slug function with odoo.exceptions.MissingError: Record does not exist or has been deleted. slug_matching() -> build() -> to_url() -> slug() How to reproduce: Add a 308 from /shop/<product> to /mag/<product> Try to access /shop/<product>-unexisting_ID will crash with: odoo.exceptions.MissingError
Diffstat (limited to 'addons/pos_cache/static/src/js/pos_cache.js')
0 files changed, 0 insertions, 0 deletions