oca-odoo-pre-commit-hooks 0.2.26__tar.gz → 0.2.27__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.
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/PKG-INFO +127 -104
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/README.md +121 -103
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/setup.py +1 -1
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_odoo_pre_commit_hooks.egg-info/PKG-INFO +127 -104
- oca_odoo_pre_commit_hooks-0.2.27/src/oca_pre_commit_hooks/__init__.py +1 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_xml.py +40 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/node_xml.py +75 -2
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/tests/test_checks.py +31 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/tests/test_node_xml.py +40 -0
- oca_odoo_pre_commit_hooks-0.2.26/src/oca_pre_commit_hooks/__init__.py +0 -1
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/LICENSE +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/pyproject.toml +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/requirements.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/setup.cfg +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_odoo_pre_commit_hooks.egg-info/SOURCES.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_odoo_pre_commit_hooks.egg-info/dependency_links.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_odoo_pre_commit_hooks.egg-info/entry_points.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_odoo_pre_commit_hooks.egg-info/not-zip-safe +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_odoo_pre_commit_hooks.egg-info/requires.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_odoo_pre_commit_hooks.egg-info/top_level.txt +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/__main__.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/base_checker.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_csv.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_fixit.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_common.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/__init__.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/field_string_redundant.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/manifest_superfluous_key_rule.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/prefer_env_translation.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_fixit_rules/unused_logger.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/checks_odoo_module_po.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/cli.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/cli_fixit.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/cli_po.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/global_parser.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/src/oca_pre_commit_hooks/utils.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/tests/test_checks_po.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/tests/test_fixit.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/tests/test_fixit_flags.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/tests/test_pre_commit_hook.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/tests/test_profiling.py +0 -0
- {oca_odoo_pre_commit_hooks-0.2.26 → oca_odoo_pre_commit_hooks-0.2.27}/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.
|
|
3
|
+
Version: 0.2.27
|
|
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
|
[](https://pypi.org/project/oca-odoo-pre-commit-hooks)
|
|
53
53
|
[](https://pypi.org/project/oca-odoo-pre-commit-hooks)
|
|
54
54
|
[](https://pypi.org/project/oca-odoo-pre-commit-hooks)
|
|
55
|
-
[](https://github.com/OCA/odoo-pre-commit-hooks/compare/v0.2.27...main)
|
|
56
56
|
[](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.
|
|
84
|
+
rev: v0.2.27
|
|
85
85
|
hooks:
|
|
86
86
|
- id: oca-checks-odoo-module
|
|
87
87
|
- id: oca-checks-po
|
|
@@ -218,6 +218,18 @@ for use of deprecated QWeb directives t-*-options
|
|
|
218
218
|
t-esc and t-raw directives are deprecated in Odoo v15.0, use t-out instead.
|
|
219
219
|
For more details https://github.com/odoo/odoo/commit/01875541b1a8131cb and https://github.com/odoo/odoo/pull/70004
|
|
220
220
|
|
|
221
|
+
* Check xml-deprecated-res-groups-category-id
|
|
222
|
+
|
|
223
|
+
Odoo 19 removed the field `category_id` of `res.groups`. It was replaced by `privilege_id`,
|
|
224
|
+
a many2one to the new model `res.groups.privilege`, so a record still writing `category_id`
|
|
225
|
+
breaks the installation with
|
|
226
|
+
`ValueError: Invalid field 'category_id' on model 'res.groups'`.
|
|
227
|
+
The autofix removes the field, the very change Odoo applied to its own groups whose category
|
|
228
|
+
was only a technical one. Set `privilege_id` by hand instead when the group is meant to be
|
|
229
|
+
displayed under a privilege in the user form.
|
|
230
|
+
For more details https://github.com/odoo/odoo/commit/33637d137ed52f5faabaafd5c208e187042be8eb
|
|
231
|
+
and https://github.com/odoo/odoo/pull/199988
|
|
232
|
+
|
|
221
233
|
* Check xml-header-missing
|
|
222
234
|
Generated when the XML file is missing the XML declaration header '<?xml version="1.0" encoding="UTF-8" ?>'
|
|
223
235
|
|
|
@@ -420,181 +432,187 @@ options:
|
|
|
420
432
|
|
|
421
433
|
* csv-duplicate-record-id
|
|
422
434
|
|
|
423
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
424
436
|
|
|
425
437
|
* csv-syntax-error
|
|
426
438
|
|
|
427
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
428
440
|
|
|
429
441
|
* field-string-redundant
|
|
430
442
|
|
|
431
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
432
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
433
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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`
|
|
434
446
|
|
|
435
447
|
* file-not-used
|
|
436
448
|
|
|
437
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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.
|
|
438
450
|
|
|
439
451
|
* manifest-superfluous-key
|
|
440
452
|
|
|
441
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
442
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
443
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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`
|
|
444
456
|
|
|
445
457
|
* manifest-syntax-error
|
|
446
458
|
|
|
447
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
448
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
449
461
|
|
|
450
462
|
* prefer-env-translation
|
|
451
463
|
|
|
452
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
453
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
454
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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`
|
|
455
467
|
|
|
456
468
|
* prefer-readme-rst
|
|
457
469
|
|
|
458
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
459
471
|
|
|
460
472
|
* unused-logger
|
|
461
473
|
|
|
462
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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`
|
|
463
475
|
|
|
464
476
|
* use-header-comments
|
|
465
477
|
|
|
466
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
467
479
|
|
|
468
480
|
* weblate-component-too-long
|
|
469
481
|
|
|
470
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
471
483
|
|
|
472
484
|
* xml-create-user-wo-reset-password
|
|
473
485
|
|
|
474
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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}"`
|
|
475
487
|
|
|
476
488
|
* xml-dangerous-qweb-replace-low-priority
|
|
477
489
|
|
|
478
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
479
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
480
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
481
493
|
|
|
482
494
|
* xml-deprecated-data-node
|
|
483
495
|
|
|
484
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
485
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
486
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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">`
|
|
487
499
|
|
|
488
500
|
* xml-deprecated-oe-chatter
|
|
489
501
|
|
|
490
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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/>.
|
|
491
503
|
|
|
492
504
|
* xml-deprecated-openerp-node
|
|
493
505
|
|
|
494
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
495
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
496
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
497
509
|
|
|
498
510
|
* xml-deprecated-qweb-directive
|
|
499
511
|
|
|
500
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
501
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
502
514
|
|
|
503
515
|
* xml-deprecated-qweb-directive-15
|
|
504
516
|
|
|
505
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
506
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
507
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
520
|
+
|
|
521
|
+
* xml-deprecated-res-groups-category-id
|
|
522
|
+
|
|
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
|
|
508
526
|
|
|
509
527
|
* xml-deprecated-tree-attribute
|
|
510
528
|
|
|
511
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
512
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
513
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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=..."
|
|
514
532
|
|
|
515
533
|
* xml-duplicate-fields
|
|
516
534
|
|
|
517
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
518
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
519
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
520
538
|
|
|
521
539
|
* xml-duplicate-record-id
|
|
522
540
|
|
|
523
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
524
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
525
543
|
|
|
526
544
|
* xml-duplicate-template-id
|
|
527
545
|
|
|
528
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
529
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
530
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
531
549
|
|
|
532
550
|
* xml-field-bool-without-eval
|
|
533
551
|
|
|
534
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
535
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
536
554
|
|
|
537
555
|
* xml-field-numeric-without-eval
|
|
538
556
|
|
|
539
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
540
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
541
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
542
560
|
|
|
543
561
|
* xml-header-missing
|
|
544
562
|
|
|
545
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
546
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
547
565
|
|
|
548
566
|
* xml-header-wrong
|
|
549
567
|
|
|
550
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
551
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
552
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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"?>'
|
|
553
571
|
|
|
554
572
|
* xml-not-valid-char-link
|
|
555
573
|
|
|
556
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
557
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
558
576
|
|
|
559
577
|
* xml-oe-structure-missing-id
|
|
560
578
|
|
|
561
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
562
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
563
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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`
|
|
564
582
|
|
|
565
583
|
* xml-record-missing-id
|
|
566
584
|
|
|
567
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
568
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
569
587
|
|
|
570
588
|
* xml-redundant-module-name
|
|
571
589
|
|
|
572
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
573
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
574
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
575
593
|
|
|
576
594
|
* xml-syntax-error
|
|
577
595
|
|
|
578
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
579
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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: ''
|
|
580
598
|
|
|
581
599
|
* xml-tag-position
|
|
582
600
|
|
|
583
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
584
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
585
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
586
604
|
|
|
587
605
|
* xml-view-dangerous-replace-low-priority
|
|
588
606
|
|
|
589
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
590
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
591
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
592
610
|
|
|
593
611
|
* xml-xpath-translatable-item
|
|
594
612
|
|
|
595
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
596
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
597
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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()`
|
|
598
616
|
|
|
599
617
|
[//]: # (end-example)
|
|
600
618
|
|
|
@@ -606,49 +624,49 @@ options:
|
|
|
606
624
|
|
|
607
625
|
* po-duplicate-message-definition
|
|
608
626
|
|
|
609
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
610
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
611
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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.
|
|
612
630
|
|
|
613
631
|
* po-duplicate-model-definition
|
|
614
632
|
|
|
615
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
616
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
617
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
618
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
619
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
620
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
621
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
622
640
|
|
|
623
641
|
* po-pretty-format
|
|
624
642
|
|
|
625
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
626
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
627
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
628
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
629
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
630
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
631
649
|
|
|
632
650
|
* po-python-parse-format
|
|
633
651
|
|
|
634
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
635
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
636
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
637
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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')
|
|
638
656
|
|
|
639
657
|
* po-python-parse-printf
|
|
640
658
|
|
|
641
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
642
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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')
|
|
643
661
|
|
|
644
662
|
* po-requires-module
|
|
645
663
|
|
|
646
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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`
|
|
647
665
|
|
|
648
666
|
* po-syntax-error
|
|
649
667
|
|
|
650
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
651
|
-
- https://github.com/OCA/odoo-pre-commit-hooks/blob/v0.2.
|
|
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
|
|
652
670
|
|
|
653
671
|
[//]: # (end-example-po)
|
|
654
672
|
|
|
@@ -664,6 +682,11 @@ and promote its widespread use.
|
|
|
664
682
|
CHANGES
|
|
665
683
|
=======
|
|
666
684
|
|
|
685
|
+
v0.2.27
|
|
686
|
+
-------
|
|
687
|
+
|
|
688
|
+
* [ADD] xml-deprecated-res-groups-category-id: New check with autofix for v19.0+ (#200)
|
|
689
|
+
|
|
667
690
|
v0.2.26
|
|
668
691
|
-------
|
|
669
692
|
|