From 5739a98e37ee6451bada528d35acbdc2e54654d9 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Sun, 25 Jan 2026 07:58:11 -0600 Subject: [PATCH 1/4] [REF] xml-template-prettier-incompatible: Add new cases detected Continue from https://github.com/OCA/odoo-pre-commit-hooks/pull/150 Related to https://github.com/OCA/odoo-pre-commit-hooks/issues/149 --- README.md | 14 ++--- .../checks_odoo_module_xml.py | 62 ++++++++++++------- test_repo/test_module/website_templates.xml | 18 ++++++ tests/test_checks.py | 2 +- 4 files changed, 67 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 7f3bb8dc..46262a09 100644 --- a/README.md +++ b/README.md @@ -456,7 +456,7 @@ options: * xml-deprecated-qweb-directive - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L7 Deprecated QWeb directive `t-esc-options`. Use `t-options` instead - - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L37 Deprecated QWeb directive `t-field-options`. Use `t-options` instead + - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L55 Deprecated QWeb directive `t-field-options`. Use `t-options` instead * xml-deprecated-qweb-directive-15 @@ -523,14 +523,14 @@ options: * xml-not-valid-char-link - - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L59 The resource in in src/href contains a not valid character - - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L61 The resource in in src/href contains a not valid character + - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L77 The resource in in src/href contains a not valid character + - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L79 The resource in in src/href contains a not valid character * xml-oe-structure-missing-id - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L9 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure` - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L13 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure` - - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L41 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure` + - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L59 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure` * xml-record-missing-id @@ -550,9 +550,9 @@ options: * xml-template-prettier-incompatible - - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L22 Node ` + +
+
+ Dear + + + :
+ By this means, you are informed that the budget movement of + + with the number: + + + + has been liquidated and transferred + to the available balance of the related budgetary item.
+ Regards, +
+
diff --git a/tests/test_checks.py b/tests/test_checks.py index 65a413a1..523af715 100644 --- a/tests/test_checks.py +++ b/tests/test_checks.py @@ -44,7 +44,7 @@ "xml-not-valid-char-link": 2, "xml-redundant-module-name": 3, "xml-syntax-error": 2, - "xml-template-prettier-incompatible": 3, + "xml-template-prettier-incompatible": 5, "xml-view-dangerous-replace-low-priority": 7, "xml-xpath-translatable-item": 4, "xml-oe-structure-missing-id": 6, From d8a7de83bec656413911aefa2fb5a02234ae27a2 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Sun, 25 Jan 2026 08:26:19 -0600 Subject: [PATCH 2/4] improve-msg --- README.md | 6 +++--- src/oca_pre_commit_hooks/checks_odoo_module_xml.py | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 46262a09..31f457eb 100644 --- a/README.md +++ b/README.md @@ -550,9 +550,9 @@ options: * xml-template-prettier-incompatible - - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.20/test_repo/test_module/website_templates.xml#L22 Node `