- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML record: Place id
attribute before model
#26
Comments
See the following output using Odoo v15.0:
What about creating a new generation of lints (new project) compatible with pre-commit in order to auto-fix XML? e.g. |
And create 3rd project: |
Currently, the OCA is moving to auto-fix In fact, you could do a small script to do it and only create the file hook for pre-commit in order to be auto-called from OCA pipelines and auto-fixed all the projects in one shot It doesn't need to do a big project as pylint or sufficient maintenance Check the following similar small project: It has only 2 commits and 3 files (README, pre-commit-hook, script) Try to do proof of concept to create a script to get all the and I can help you to adapt it to pre-commit It could be better to auto-fix all them instead of mark it and fix manually There are other kinds of lints that are not easy to auto-fix it or it is impossible to do it But it is a good example to auto-fix it easy |
Same for eval before name, e.g.:
|
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
…l id is not the first attribute Welcome to autofix checks for xml Fix OCA#26 Following the Odoo convention: [Place id attribute before model](https://www.odoo.com/documentation/18.0/contributing/development/coding_guidelines.html#xml-files)
…l id is not the first attribute Welcome to autofix checks for xml Fix OCA#26 Following the Odoo convention: [Place id attribute before model](https://www.odoo.com/documentation/18.0/contributing/development/coding_guidelines.html#xml-files) [IMP] xml-redundant-module-name: Add autofix feature
…l id is not the first attribute Welcome to autofix checks for xml Fix OCA#26 Following the Odoo convention: [Place id attribute before model](https://www.odoo.com/documentation/18.0/contributing/development/coding_guidelines.html#xml-files) [IMP] xml-redundant-module-name: Add autofix feature
Odoo guidelines says that
id
attribute must be beforemodel
attribute for XML records.Many OCA repos will be need to disable this checking or fix data files. In other case linter will fail.
The text was updated successfully, but these errors were encountered: