[14.0][IMP] shopfloor: add decorator to gracefully handle exceptions on response
This PR adds a decorator that can be used on any endpoint to catch some exceptions and return to the user a clean error message and not a 500 error message.
This is to solve the problem discussed on https://github.com/OCA/wms/pull/732
Hi @guewen, @sebalix, @simahawk, some modules you are maintaining are being modified, check this out!
@bguillot As discussed on OCA days, here is the PR proposal for catching errors in shopfloor
@bguillot Can you drop a review as you were the first to suggest such improvement?
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.