Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] web: reduce number of useless try/catch
Before this commit, whenever we evaluate a partial context (for example, when opening a form view), we would do a large number of try/catch, with many of them resulting in an error. This is because the context string represents an object with many field values, which are not in the evaluation context. The purpose of the evalPartialContext is to get the static values from the context. But these errors are annoying if we are debugging and have a break on caught exception setting on, which is usually what i do. So, this commit improves the situation by avoiding the try/catch in some cases where we know that the operation will fail anyway. This is a heuristics, but it basically completely solves the issue in most cases. closes odoo#142486 Signed-off-by: Mathieu Duckerts-Antoine (dam) <[email protected]>
- Loading branch information