Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] fields: log diff of html field when you cannot edit it
Since commit cf844e3, we have a new group `group_sanitize_override` that allow to prevent users from adding code that will be evaluated. To know if a user can edit a field if they are restricted editor and without this group, we do the diff between the normalized version and the sanitized. It is difficult to debug in production why a user cannot edit a html field because we don't have the log of this diff. Now we add the unified diff into the log. It should not occur too often and if necessary we will reduce the occurrences in the log later. (if debug mode, if loaded into the iframe [in edit mode with @], ...) closes odoo#133395 X-original-commit: d60759d Signed-off-by: Romain Derie (rde) <rde@odoo.com> Signed-off-by: Jérémy Kersten <jke@odoo.com>
- Loading branch information