oca-odoo-pre-commit-hooks 0.2.27__tar.gz → 0.2.28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/PKG-INFO +135 -107
  2. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/README.md +129 -106
  3. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/setup.py +1 -1
  4. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_odoo_pre_commit_hooks.egg-info/PKG-INFO +135 -107
  5. oca_odoo_pre_commit_hooks-0.2.28/src/oca_pre_commit_hooks/__init__.py +1 -0
  6. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_xml.py +75 -0
  7. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/tests/test_checks.py +1 -0
  8. oca_odoo_pre_commit_hooks-0.2.28/tests/test_node_xml.py +273 -0
  9. oca_odoo_pre_commit_hooks-0.2.27/src/oca_pre_commit_hooks/__init__.py +0 -1
  10. oca_odoo_pre_commit_hooks-0.2.27/tests/test_node_xml.py +0 -135
  11. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/LICENSE +0 -0
  12. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/pyproject.toml +0 -0
  13. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/requirements.txt +0 -0
  14. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/setup.cfg +0 -0
  15. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_odoo_pre_commit_hooks.egg-info/SOURCES.txt +0 -0
  16. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_odoo_pre_commit_hooks.egg-info/dependency_links.txt +0 -0
  17. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_odoo_pre_commit_hooks.egg-info/entry_points.txt +0 -0
  18. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_odoo_pre_commit_hooks.egg-info/not-zip-safe +0 -0
  19. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_odoo_pre_commit_hooks.egg-info/requires.txt +0 -0
  20. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_odoo_pre_commit_hooks.egg-info/top_level.txt +0 -0
  21. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/__main__.py +0 -0
  22. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/base_checker.py +0 -0
  23. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module.py +0 -0
  24. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_csv.py +0 -0
  25. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_fixit.py +0 -0
  26. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_common.py +0 -0
  27. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/__init__.py +0 -0
  28. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/field_string_redundant.py +0 -0
  29. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/manifest_superfluous_key_rule.py +0 -0
  30. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/prefer_env_translation.py +0 -0
  31. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/unused_logger.py +0 -0
  32. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/checks_odoo_module_po.py +0 -0
  33. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/cli.py +0 -0
  34. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/cli_fixit.py +0 -0
  35. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/cli_po.py +0 -0
  36. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/global_parser.py +0 -0
  37. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/node_xml.py +0 -0
  38. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/src/oca_pre_commit_hooks/utils.py +0 -0
  39. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/tests/test_checks_po.py +0 -0
  40. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/tests/test_fixit.py +0 -0
  41. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/tests/test_fixit_flags.py +0 -0
  42. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/tests/test_pre_commit_hook.py +0 -0
  43. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/tests/test_profiling.py +0 -0
  44. {oca_odoo_pre_commit_hooks-0.2.27 → oca_odoo_pre_commit_hooks-0.2.28}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oca-odoo-pre-commit-hooks
3
- Version: 0.2.27
3
+ Version: 0.2.28
4
4
  Summary: odoo-pre-commit-hooks to use in pre-commit-config.yml files
5
5
  Home-page: https://github.com/OCA/odoo-pre-commit-hooks
6
6
  Author: Odoo Community Association (OCA)
@@ -52,7 +52,7 @@ Dynamic: summary
52
52
  [![version](https://img.shields.io/pypi/v/oca-odoo-pre-commit-hooks.svg)](https://pypi.org/project/oca-odoo-pre-commit-hooks)
53
53
  [![wheel](https://img.shields.io/pypi/wheel/oca-odoo-pre-commit-hooks.svg)](https://pypi.org/project/oca-odoo-pre-commit-hooks)
54
54
  [![supported-versions](https://img.shields.io/pypi/pyversions/oca-odoo-pre-commit-hooks.svg)](https://pypi.org/project/oca-odoo-pre-commit-hooks)
55
- [![commits-since](https://img.shields.io/github/commits-since/OCA/odoo-pre-commit-hooks/v0.2.27.svg)](https://github.com/OCA/odoo-pre-commit-hooks/compare/v0.2.27...main)
55
+ [![commits-since](https://img.shields.io/github/commits-since/OCA/odoo-pre-commit-hooks/v0.2.28.svg)](https://github.com/OCA/odoo-pre-commit-hooks/compare/v0.2.28...main)
56
56
  [![code-style-black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
57
57
 
58
58
  [//]: # (end-badges)
@@ -81,7 +81,7 @@ Add to your ".pre-commit-config.yaml" configuration file the following input
81
81
 
82
82
  ```yaml
83
83
  - repo: https://github.com/OCA/odoo-pre-commit-hooks
84
- rev: v0.2.27
84
+ rev: v0.2.28
85
85
  hooks:
86
86
  - id: oca-checks-odoo-module
87
87
  - id: oca-checks-po
@@ -266,6 +266,23 @@ if the record is integer but without eval attribute
266
266
  instead of
267
267
  `<field name="sequence" eval="100" />`
268
268
 
269
+ * Check xml-invisible-in-list-view
270
+
271
+ Using `invisible="1"` or `invisible="True"` on a `<field>` inside a `<list>` or `<tree>`
272
+ view does not hide the column properly. Since Odoo 17 the correct attribute to hide an
273
+ entire column is `column_invisible="True"`.
274
+ For more details see https://www.odoo.com/documentation/17.0/developer/reference/backend/views.html#lists
275
+
276
+ Only the columns, the fields that are direct children of the `<list>` or `<tree>`, are
277
+ checked, so the ones added by an inherited view (`<xpath ... position="inside">`,
278
+ `<attribute name="invisible">`) are not reported. A field of a view declared inside a
279
+ field of the list (`<form>`, `<kanban>`, ...) or of a `<groupby>` is not reported either.
280
+
281
+ The autofix replaces `invisible="1"` and `invisible="True"` with `column_invisible="True"`.
282
+ The column is then removed as a whole: its header, its footer total and its export
283
+ are gone too, instead of only emptying the cell of each row.
284
+ It is skipped (the error is still reported) when the field already has `column_invisible`.
285
+
269
286
  * Check xml-create-user-wo-reset-password
270
287
  records of user without `context="{'no_reset_password': True}"`
271
288
  This context avoid send email and mail log warning
@@ -432,187 +449,193 @@ options:
432
449
 
433
450
  * csv-duplicate-record-id
434
451
 
435
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/ir.model.access.csv#L5 Duplicate CSV record `access_account_account_type` broken_module/ir.model.access.csv:6
452
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/ir.model.access.csv#L5 Duplicate CSV record `access_account_account_type` broken_module/ir.model.access.csv:6
436
453
 
437
454
  * csv-syntax-error
438
455
 
439
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/syntax_err_module/ir.model.access.csv#L1 'utf-8' codec can't decode byte 0xf1 in position 47: invalid continuation byte
456
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/syntax_err_module/ir.model.access.csv#L1 'utf-8' codec can't decode byte 0xf1 in position 47: invalid continuation byte
440
457
 
441
458
  * field-string-redundant
442
459
 
443
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/models/broken_model.py#L98 The 'string' attribute is redundant and should be removed. (has autofix) You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=field-string-redundant` or `# lint-ignore`
444
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/models/broken_model.py#L130 The 'string' attribute is redundant and should be removed. (has autofix) You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=field-string-redundant` or `# lint-ignore`
445
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/models/broken_model.py#L140 The 'string' attribute is redundant and should be removed. (has autofix) You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=field-string-redundant` or `# lint-ignore`
460
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/models/broken_model.py#L98 The 'string' attribute is redundant and should be removed. (has autofix) You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=field-string-redundant` or `# lint-ignore`
461
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/models/broken_model.py#L130 The 'string' attribute is redundant and should be removed. (has autofix) You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=field-string-redundant` or `# lint-ignore`
462
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/models/broken_model.py#L140 The 'string' attribute is redundant and should be removed. (has autofix) You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=field-string-redundant` or `# lint-ignore`
446
463
 
447
464
  * file-not-used
448
465
 
449
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/__openerp__.py#L1 File "broken_module/report/test_report.xml" is not referenced in the manifest. 🔴 If it is loaded from another source (e.g. a post_init_hook script), just add it under the section "oca_data_manual": ["report/test_report.xml",] to be considered. 🔵 Otherwise, you might want to remove it.
466
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/__openerp__.py#L1 File "broken_module/report/test_report.xml" is not referenced in the manifest. 🔴 If it is loaded from another source (e.g. a post_init_hook script), just add it under the section "oca_data_manual": ["report/test_report.xml",] to be considered. 🔵 Otherwise, you might want to remove it.
450
467
 
451
468
  * manifest-superfluous-key
452
469
 
453
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/__openerp__.py#L32 Delete empty values. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=manifest-superfluous-key` or `# lint-ignore`
454
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/__openerp__.py#L34 Delete empty values. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=manifest-superfluous-key` or `# lint-ignore`
455
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/woversion_module/__manifest__.py#L8 Delete empty values. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=manifest-superfluous-key` or `# lint-ignore`
470
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/__openerp__.py#L32 Delete empty values. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=manifest-superfluous-key` or `# lint-ignore`
471
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/__openerp__.py#L34 Delete empty values. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=manifest-superfluous-key` or `# lint-ignore`
472
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/woversion_module/__manifest__.py#L8 Delete empty values. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=manifest-superfluous-key` or `# lint-ignore`
456
473
 
457
474
  * manifest-syntax-error
458
475
 
459
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/manifest_werror/__manifest__.py#L1 Manifest could not be loaded manifest malformed
460
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/woinit_module/__manifest__.py#L1 Manifest could not be loaded
476
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/manifest_werror/__manifest__.py#L1 Manifest could not be loaded manifest malformed
477
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/woinit_module/__manifest__.py#L1 Manifest could not be loaded
461
478
 
462
479
  * prefer-env-translation
463
480
 
464
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/models/broken_model.py#L247 Use self.env._(...) instead of _(…) directly inside Odoo model methods. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=prefer-env-translation` or `# lint-ignore`
465
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/models/broken_model.py#L264 Use self.env._(...) instead of _(…) directly inside Odoo model methods. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=prefer-env-translation` or `# lint-ignore`
466
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/models/broken_model.py#L267 Use self.env._(...) instead of _(…) directly inside Odoo model methods. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=prefer-env-translation` or `# lint-ignore`
481
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/models/broken_model.py#L247 Use self.env._(...) instead of _(…) directly inside Odoo model methods. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=prefer-env-translation` or `# lint-ignore`
482
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/models/broken_model.py#L264 Use self.env._(...) instead of _(…) directly inside Odoo model methods. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=prefer-env-translation` or `# lint-ignore`
483
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/models/broken_model.py#L267 Use self.env._(...) instead of _(…) directly inside Odoo model methods. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=prefer-env-translation` or `# lint-ignore`
467
484
 
468
485
  * prefer-readme-rst
469
486
 
470
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/README.md#L1 Prefer README.rst instead of README.md
487
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/README.md#L1 Prefer README.rst instead of README.md
471
488
 
472
489
  * unused-logger
473
490
 
474
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/models/model_inhe1.py#L17 Unused `_logger` is not allowed in Odoo models. Remove it if not used. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=unused-logger` or `# lint-ignore`
491
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/models/model_inhe1.py#L17 Unused `_logger` is not allowed in Odoo models. Remove it if not used. You can disable this check by adding the following comment to the affected line or just above it `# lint-ignore=unused-logger` or `# lint-ignore`
475
492
 
476
493
  * use-header-comments
477
494
 
478
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/eleven_module/models.py#L9 Use of header comments in lines 3, 5, 6, 7, 9
495
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/eleven_module/models.py#L9 Use of header comments in lines 3, 5, 6, 7, 9
479
496
 
480
497
  * weblate-component-too-long
481
498
 
482
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/syntax_err_module/__manifest__.py#L1 Repo Name + Odoo version + Module name is too long for weblate component 'big-big-big-big-big-big-big-big-big-big-big-big-big-big-big-big-big--00.0-syntax_err_module' size 91 is longer than 90 characters
499
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/syntax_err_module/__manifest__.py#L1 Repo Name + Odoo version + Module name is too long for weblate component 'big-big-big-big-big-big-big-big-big-big-big-big-big-big-big-big-big--00.0-syntax_err_module' size 91 is longer than 90 characters
483
500
 
484
501
  * xml-create-user-wo-reset-password
485
502
 
486
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/res_users.xml#L10 record res.users without `context="{'no_reset_password': True}"`
503
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/res_users.xml#L10 record res.users without `context="{'no_reset_password': True}"`
487
504
 
488
505
  * xml-dangerous-qweb-replace-low-priority
489
506
 
490
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/template1.xml#L4 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `t-if="False"` first
491
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/template1.xml#L7 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `t-if="False"` first
492
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/template1.xml#L18 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `t-if="False"` first
507
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/template1.xml#L4 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `t-if="False"` first
508
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/template1.xml#L7 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `t-if="False"` first
509
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/template1.xml#L18 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `t-if="False"` first
493
510
 
494
511
  * xml-deprecated-data-node
495
512
 
496
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/demo/duplicated_id_demo.xml#L3 Deprecated `<data>` node Use `<odoo>` instead of `<odoo><data>` or `<odoo noupdate="1">` instead of `<odoo><data noupdate="1">`
497
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view.xml#L3 Deprecated `<data>` node Use `<odoo>` instead of `<odoo><data>` or `<odoo noupdate="1">` instead of `<odoo><data noupdate="1">`
498
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view2.xml#L3 Deprecated `<data>` node Use `<odoo>` instead of `<odoo><data>` or `<odoo noupdate="1">` instead of `<odoo><data noupdate="1">`
513
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/demo/duplicated_id_demo.xml#L3 Deprecated `<data>` node Use `<odoo>` instead of `<odoo><data>` or `<odoo noupdate="1">` instead of `<odoo><data noupdate="1">`
514
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view.xml#L3 Deprecated `<data>` node Use `<odoo>` instead of `<odoo><data>` or `<odoo noupdate="1">` instead of `<odoo><data noupdate="1">`
515
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view2.xml#L3 Deprecated `<data>` node Use `<odoo>` instead of `<odoo><data>` or `<odoo noupdate="1">` instead of `<odoo><data noupdate="1">`
499
516
 
500
517
  * xml-deprecated-oe-chatter
501
518
 
502
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/odoo18_module/views/deprecated_chatter.xml#L6 Please replace old style chatters with the new tag <chatter/>.
519
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo18_module/views/deprecated_chatter.xml#L6 Please replace old style chatters with the new tag <chatter/>.
503
520
 
504
521
  * xml-deprecated-openerp-node
505
522
 
506
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
507
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view2.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
508
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/model_view.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
523
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
524
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view2.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
525
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/model_view.xml#L2 Deprecated `<openerp>` xml node Use `<odoo>` instead
509
526
 
510
527
  * xml-deprecated-qweb-directive
511
528
 
512
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/website_templates.xml#L7 Deprecated QWeb directive `t-esc-options`. Use `t-options` instead
513
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/website_templates.xml#L26 Deprecated QWeb directive `t-field-options`. Use `t-options` instead
529
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/website_templates.xml#L7 Deprecated QWeb directive `t-esc-options`. Use `t-options` instead
530
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/website_templates.xml#L26 Deprecated QWeb directive `t-field-options`. Use `t-options` instead
514
531
 
515
532
  * xml-deprecated-qweb-directive-15
516
533
 
517
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L6 Deprecated QWeb directive `t-esc`. Use `t-out` instead
518
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L7 Deprecated QWeb directive `t-raw`. Use `t-out` instead
519
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L15 Deprecated QWeb directive `t-esc`. Use `t-out` instead
534
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L6 Deprecated QWeb directive `t-esc`. Use `t-out` instead
535
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L7 Deprecated QWeb directive `t-raw`. Use `t-out` instead
536
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo18_module/views/deprecated_qweb_directives15.xml#L15 Deprecated QWeb directive `t-esc`. Use `t-out` instead
520
537
 
521
538
  * xml-deprecated-res-groups-category-id
522
539
 
523
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/odoo19_module/security/res_groups.xml#L6 Deprecated `<field name="category_id"` of `res.groups` removed in Odoo 19.0 Use `<field name="privilege_id" ref="..."` with a `res.groups.privilege` record instead
524
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/odoo19_module/security/res_groups.xml#L12 Deprecated `<field name="category_id"` of `res.groups` removed in Odoo 19.0 Use `<field name="privilege_id" ref="..."` with a `res.groups.privilege` record instead
525
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/odoo19_module/security/res_groups.xml#L15 Deprecated `<field name="category_id"` of `res.groups` removed in Odoo 19.0 Use `<field name="privilege_id" ref="..."` with a `res.groups.privilege` record instead
540
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo19_module/security/res_groups.xml#L6 Deprecated `<field name="category_id"` of `res.groups` removed in Odoo 19.0 Use `<field name="privilege_id" ref="..."` with a `res.groups.privilege` record instead
541
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo19_module/security/res_groups.xml#L12 Deprecated `<field name="category_id"` of `res.groups` removed in Odoo 19.0 Use `<field name="privilege_id" ref="..."` with a `res.groups.privilege` record instead
542
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo19_module/security/res_groups.xml#L15 Deprecated `<field name="category_id"` of `res.groups` removed in Odoo 19.0 Use `<field name="privilege_id" ref="..."` with a `res.groups.privilege` record instead
526
543
 
527
544
  * xml-deprecated-tree-attribute
528
545
 
529
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo.xml#L31 Deprecated "<tree string=..."
530
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo.xml#L42 Deprecated "<tree colors=..."
531
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo.xml#L53 Deprecated "<tree fonts=..."
546
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo.xml#L31 Deprecated "<tree string=..."
547
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo.xml#L42 Deprecated "<tree colors=..."
548
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo.xml#L53 Deprecated "<tree fonts=..."
532
549
 
533
550
  * xml-duplicate-fields
534
551
 
535
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo2.xml#L5 Duplicate xml field `name` broken_module/model_view_odoo2.xml:12
536
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo2.xml#L22 Duplicate xml field `model` broken_module/model_view_odoo2.xml:23
537
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo2.xml#L80 Duplicate xml field `arch` broken_module/model_view_odoo2.xml:83
552
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo2.xml#L5 Duplicate xml field `name` broken_module/model_view_odoo2.xml:12
553
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo2.xml#L22 Duplicate xml field `model` broken_module/model_view_odoo2.xml:23
554
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo2.xml#L80 Duplicate xml field `arch` broken_module/model_view_odoo2.xml:83
538
555
 
539
556
  * xml-duplicate-record-id
540
557
 
541
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view.xml#L5 Duplicate xml record id `view_model_form` broken_module/model_view_odoo.xml:5 broken_module/model_view_odoo2.xml:4
542
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view2.xml#L5 Duplicate xml record id `view_model_form2` broken_module/model_view_odoo2.xml:16
558
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view.xml#L5 Duplicate xml record id `view_model_form` broken_module/model_view_odoo.xml:5 broken_module/model_view_odoo2.xml:4
559
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view2.xml#L5 Duplicate xml record id `view_model_form2` broken_module/model_view_odoo2.xml:16
543
560
 
544
561
  * xml-duplicate-template-id
545
562
 
546
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/template1.xml#L3 Duplicate xml template id `qweb/my_template1_noupdate_0` broken_module/template1_copy2.xml:3
547
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/template1.xml#L10 Duplicate xml template id `qweb/my_template2_noupdate_0` broken_module/template1_copy2.xml:10
548
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/template1.xml#L17 Duplicate xml template id `qweb/my_template3_noupdate_0` broken_module/template1_copy2.xml:17
563
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/template1.xml#L3 Duplicate xml template id `qweb/my_template1_noupdate_0` broken_module/template1_copy2.xml:3
564
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/template1.xml#L10 Duplicate xml template id `qweb/my_template2_noupdate_0` broken_module/template1_copy2.xml:10
565
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/template1.xml#L17 Duplicate xml template id `qweb/my_template3_noupdate_0` broken_module/template1_copy2.xml:17
549
566
 
550
567
  * xml-field-bool-without-eval
551
568
 
552
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/demo/duplicated_id_demo.xml#L18 Field `active` with boolean value without `eval` attribute
553
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo2.xml#L18 Field `active` with boolean value without `eval` attribute
569
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/demo/duplicated_id_demo.xml#L18 Field `active` with boolean value without `eval` attribute
570
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo2.xml#L18 Field `active` with boolean value without `eval` attribute
554
571
 
555
572
  * xml-field-numeric-without-eval
556
573
 
557
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/demo/duplicated_id_demo.xml#L8 Field `priority` with numeric value without `eval` attribute
558
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/demo/duplicated_id_demo.xml#L22 Field `sequence` with numeric value without `eval` attribute
559
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view2.xml#L62 Field `priority` with numeric value without `eval` attribute
574
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/demo/duplicated_id_demo.xml#L8 Field `priority` with numeric value without `eval` attribute
575
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/demo/duplicated_id_demo.xml#L22 Field `sequence` with numeric value without `eval` attribute
576
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view2.xml#L62 Field `priority` with numeric value without `eval` attribute
560
577
 
561
578
  * xml-header-missing
562
579
 
563
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo2.xml#L1 XML missing header
564
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/xml_wo_header.xml#L1 XML missing header
580
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo2.xml#L1 XML missing header
581
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/xml_wo_header.xml#L1 XML missing header
565
582
 
566
583
  * xml-header-wrong
567
584
 
568
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/demo/duplicated_id_demo.xml#L1 XML header expected '<?xml version="1.0" encoding="UTF-8" ?>' but received '<?xml version="1.0" encoding="utf-8"?>'
569
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/deprecated_disable.xml#L1 XML header expected '<?xml version="1.0" encoding="UTF-8" ?>' but received '<?xml version="1.0" encoding="utf-8" ?>'
570
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view.xml#L1 XML header expected '<?xml version="1.0" encoding="UTF-8" ?>' but received '<?xml version="1.0" encoding="utf-8"?>'
585
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/demo/duplicated_id_demo.xml#L1 XML header expected '<?xml version="1.0" encoding="UTF-8" ?>' but received '<?xml version="1.0" encoding="utf-8"?>'
586
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/deprecated_disable.xml#L1 XML header expected '<?xml version="1.0" encoding="UTF-8" ?>' but received '<?xml version="1.0" encoding="utf-8" ?>'
587
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view.xml#L1 XML header expected '<?xml version="1.0" encoding="UTF-8" ?>' but received '<?xml version="1.0" encoding="utf-8"?>'
588
+
589
+ * xml-invisible-in-list-view
590
+
591
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo18_module/views/invisible_in_list.xml#L11 Use `column_invisible="True"` instead of `invisible` for field `state` inside a list/tree view `invisible` in a list hides the cell per-row; `column_invisible` hides the whole column
592
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo19_module/views/invisible_in_list.xml#L11 Use `column_invisible="True"` instead of `invisible` for field `state` inside a list/tree view `invisible` in a list hides the cell per-row; `column_invisible` hides the whole column
593
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/odoo19_module/views/invisible_in_list.xml#L23 Use `column_invisible="True"` instead of `invisible` for field `active` inside a list/tree view `invisible` in a list hides the cell per-row; `column_invisible` hides the whole column
571
594
 
572
595
  * xml-not-valid-char-link
573
596
 
574
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/website_templates.xml#L48 The resource in in src/href contains a not valid character
575
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/website_templates.xml#L50 The resource in in src/href contains a not valid character
597
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/website_templates.xml#L48 The resource in in src/href contains a not valid character
598
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/website_templates.xml#L50 The resource in in src/href contains a not valid character
576
599
 
577
600
  * xml-oe-structure-missing-id
578
601
 
579
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/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`
580
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/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`
581
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/website_templates.xml#L30 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure`
602
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/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`
603
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/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`
604
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/website_templates.xml#L30 Consider removing the class `oe_structure` or adding a proper id to the tag. The id must contain `oe_structure`
582
605
 
583
606
  * xml-record-missing-id
584
607
 
585
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view.xml#L25 Record has no id, add a unique one to create a new record, use an existing one to update it
586
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view.xml#L28 Record has no id, add a unique one to create a new record, use an existing one to update it
608
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view.xml#L25 Record has no id, add a unique one to create a new record, use an existing one to update it
609
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view.xml#L28 Record has no id, add a unique one to create a new record, use an existing one to update it
587
610
 
588
611
  * xml-redundant-module-name
589
612
 
590
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view2.xml#L15 Redundant module name `<record id="broken_module.view_model_form2"` Use `<record id="view_model_form2"` instead
591
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo2.xml#L158 Redundant module name `<menuitem id="broken_module.menu_root"` Use `<menuitem id="menu_root"` instead
592
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo2.xml#L165 Redundant module name `<menuitem id="broken_module.menu_root2"` Use `<menuitem id="menu_root2"` instead
613
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view2.xml#L15 Redundant module name `<record id="broken_module.view_model_form2"` Use `<record id="view_model_form2"` instead
614
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo2.xml#L158 Redundant module name `<menuitem id="broken_module.menu_root"` Use `<menuitem id="menu_root"` instead
615
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo2.xml#L165 Redundant module name `<menuitem id="broken_module.menu_root2"` Use `<menuitem id="menu_root2"` instead
593
616
 
594
617
  * xml-syntax-error
595
618
 
596
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/file_no_exist.xml#L1 [Errno 2] No such file or directory: ''
597
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/file_no_exist.xml#L1 [Errno 2] No such file or directory: ''
619
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/file_no_exist.xml#L1 [Errno 2] No such file or directory: ''
620
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/file_no_exist.xml#L1 [Errno 2] No such file or directory: ''
598
621
 
599
622
  * xml-tag-position
600
623
 
601
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/deprecated_disable.xml#L4 The expected attributes order is `<record id="duplicate_record" ...>` Use `<record id="duplicate_record" ...>` instead
602
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo2.xml#L43 The expected attributes order is `<record id="view_ir_config_search" ...>` Use `<record id="view_ir_config_search" ...>` instead
603
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view_odoo2.xml#L68 The expected attributes order is `<record id="access_rule" ...>` Use `<record id="access_rule" ...>` instead
624
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/deprecated_disable.xml#L4 The expected attributes order is `<record id="duplicate_record" ...>` Use `<record id="duplicate_record" ...>` instead
625
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo2.xml#L43 The expected attributes order is `<record id="view_ir_config_search" ...>` Use `<record id="view_ir_config_search" ...>` instead
626
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view_odoo2.xml#L68 The expected attributes order is `<record id="access_rule" ...>` Use `<record id="access_rule" ...>` instead
604
627
 
605
628
  * xml-view-dangerous-replace-low-priority
606
629
 
607
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view2.xml#L25 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `invisible="1"` first
608
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view2.xml#L37 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `invisible="1"` first
609
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view2.xml#L47 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `invisible="1"` first
630
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view2.xml#L25 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `invisible="1"` first
631
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view2.xml#L37 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `invisible="1"` first
632
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view2.xml#L47 Dangerous use of `replace` from view with priority 0 < 99 Only replace as a last resort. Try `position="attributes"`, `position="move"` or `invisible="1"` first
610
633
 
611
634
  * xml-xpath-translatable-item
612
635
 
613
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/model_view.xml#L11 Use of translatable xpath `text()`
614
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/template1.xml#L39 Use of translatable xpath `text()`
615
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/template1_copy.xml#L31 Use of translatable xpath `text()`
636
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/model_view.xml#L11 Use of translatable xpath `text()`
637
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/template1.xml#L39 Use of translatable xpath `text()`
638
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/template1_copy.xml#L31 Use of translatable xpath `text()`
616
639
 
617
640
  [//]: # (end-example)
618
641
 
@@ -624,49 +647,49 @@ options:
624
647
 
625
648
  * po-duplicate-message-definition
626
649
 
627
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L17 Duplicate PO message definition `Branch` in lines 23, 29. Odoo exports these items by msgid and delete one of them. Use the `i18n_extra` folder instead of `i18n` to ignore this message.
628
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L35 Duplicate PO message definition `Message id toooooooooooooooooooooooooooo...` in lines 41. Odoo exports these items by msgid and delete one of them. Use the `i18n_extra` folder instead of `i18n` to ignore this message.
629
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L65 Duplicate PO message definition `One variable {variable1}` in lines 71. Odoo exports these items by msgid and delete one of them. Use the `i18n_extra` folder instead of `i18n` to ignore this message.
650
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L17 Duplicate PO message definition `Branch` in lines 23, 29. Odoo exports these items by msgid and delete one of them. Use the `i18n_extra` folder instead of `i18n` to ignore this message.
651
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L35 Duplicate PO message definition `Message id toooooooooooooooooooooooooooo...` in lines 41. Odoo exports these items by msgid and delete one of them. Use the `i18n_extra` folder instead of `i18n` to ignore this message.
652
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L65 Duplicate PO message definition `One variable {variable1}` in lines 71. Odoo exports these items by msgid and delete one of them. Use the `i18n_extra` folder instead of `i18n` to ignore this message.
630
653
 
631
654
  * po-duplicate-model-definition
632
655
 
633
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L17 Translation for model:ir.model.fields,field_description:broken_module.field_wizard_description has been defined more than once in line(s) 29
634
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L35 Translation for model:ir.model.fields,field_description2:broken_module.field_wizard_description2 has been defined more than once in line(s) 41
635
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L59 Translation for model:ir.model.fields,field_description5:broken_module.field_wizard_description5 has been defined more than once in line(s) 65
636
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/i18n/fr.po#L24 Translation for model:ir.model.fields,field_description2:test_module.field_description2 has been defined more than once in line(s) 24
637
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/i18n/fr.po#L31 Translation for model:ir.model.fields,field_description5:test_module.field_description5 has been defined more than once in line(s) 31
638
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/i18n/fr.po#L38 Translation for model:ir.model.fields,field_description3:test_module.field_description3 has been defined more than once in line(s) 38
639
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/i18n/fr.po#L45 Translation for model:ir.model.fields,field_description4:test_module.field_description4 has been defined more than once in line(s) 45
656
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L17 Translation for model:ir.model.fields,field_description:broken_module.field_wizard_description has been defined more than once in line(s) 29
657
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L35 Translation for model:ir.model.fields,field_description2:broken_module.field_wizard_description2 has been defined more than once in line(s) 41
658
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L59 Translation for model:ir.model.fields,field_description5:broken_module.field_wizard_description5 has been defined more than once in line(s) 65
659
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/i18n/fr.po#L24 Translation for model:ir.model.fields,field_description2:test_module.field_description2 has been defined more than once in line(s) 24
660
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/i18n/fr.po#L31 Translation for model:ir.model.fields,field_description5:test_module.field_description5 has been defined more than once in line(s) 31
661
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/i18n/fr.po#L38 Translation for model:ir.model.fields,field_description3:test_module.field_description3 has been defined more than once in line(s) 38
662
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/i18n/fr.po#L45 Translation for model:ir.model.fields,field_description4:test_module.field_description4 has been defined more than once in line(s) 45
640
663
 
641
664
  * po-pretty-format
642
665
 
643
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/ar_unicode.po Wrong formatting
644
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/broken_module.pot Wrong formatting
645
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po Wrong formatting
646
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/xml_semi_empty.po Wrong formatting
647
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/eleven_module/i18n/ugly.po Wrong formatting
648
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/test_module/i18n/fr.po Wrong formatting
666
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/ar_unicode.po Wrong formatting
667
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/broken_module.pot Wrong formatting
668
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po Wrong formatting
669
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/xml_semi_empty.po Wrong formatting
670
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/eleven_module/i18n/ugly.po Wrong formatting
671
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/test_module/i18n/fr.po Wrong formatting
649
672
 
650
673
  * po-python-parse-format
651
674
 
652
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L53 Translation string couldn't be parsed correctly using str.format IndexError('Replacement index 1 out of range for positional args tuple')
653
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L59 Translation string couldn't be parsed correctly using str.format IndexError('Replacement index 1 out of range for positional args tuple')
654
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L65 Translation string couldn't be parsed correctly using str.format KeyError('variable2')
655
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L71 Translation string couldn't be parsed correctly using str.format KeyError('variable2')
675
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L53 Translation string couldn't be parsed correctly using str.format IndexError('Replacement index 1 out of range for positional args tuple')
676
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L59 Translation string couldn't be parsed correctly using str.format IndexError('Replacement index 1 out of range for positional args tuple')
677
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L65 Translation string couldn't be parsed correctly using str.format KeyError('variable2')
678
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L71 Translation string couldn't be parsed correctly using str.format KeyError('variable2')
656
679
 
657
680
  * po-python-parse-printf
658
681
 
659
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L47 Translation string couldn't be parsed correctly using str%variables TypeError('not all arguments converted during string formatting')
660
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/es.po#L83 Translation string couldn't be parsed correctly using str%variables TypeError('%d format: a real number is required, not str')
682
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L47 Translation string couldn't be parsed correctly using str%variables TypeError('not all arguments converted during string formatting')
683
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/es.po#L83 Translation string couldn't be parsed correctly using str%variables TypeError('%d format: a real number is required, not str')
661
684
 
662
685
  * po-requires-module
663
686
 
664
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module/i18n/broken_module.pot#L14 Translation entry requires comment `#. module: MODULE`
687
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module/i18n/broken_module.pot#L14 Translation entry requires comment `#. module: MODULE`
665
688
 
666
689
  * po-syntax-error
667
690
 
668
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/broken_module2/i18n/en.po#L1 Syntax error in po file
669
- - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.27/test_repo/syntax_err_module/i18n/es.po#L19 Syntax error in po file
691
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/broken_module2/i18n/en.po#L1 Syntax error in po file
692
+ - https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.28/test_repo/syntax_err_module/i18n/es.po#L19 Syntax error in po file
670
693
 
671
694
  [//]: # (end-example-po)
672
695
 
@@ -682,6 +705,11 @@ and promote its widespread use.
682
705
  CHANGES
683
706
  =======
684
707
 
708
+ v0.2.28
709
+ -------
710
+
711
+ * [ADD] checks\_odoo\_module\_xml: new xml-invisible-in-list-view check with autofix for v17+ (#203)
712
+
685
713
  v0.2.27
686
714
  -------
687
715