-
Notifications
You must be signed in to change notification settings - Fork 9.5k
[FIX] coding_guidelines: fix the alphabetic orders for the import #11983
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
Conversation
149e329
to
c48c949
Compare
c48c949
to
ce4ed9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I agree with the change, especially since IDEs will also follow this order by default, but could you please rebase your branch onto 16.0 and change the PR's target branch to 16.0 too, so that we cover all versions of the documentation?
ce4ed9b
to
5a148d5
Compare
@AntoineVDV Done, Re-targeting to |
In odoo, as we suggest everyone to follow an alphebetic order. The translator(`_`), ASCII is 95 and `a` ASCII value is 97 which '_' < 'a', the translator should be defined first in the import before the `api` not at the end of the import This commits adds an example to import static class `Command` with a Capital alphabet with a ASCII value of `C` as 67 which will be before than the `_` 'C' < '_' < 'a' This order of import should be followed while the import
5a148d5
to
92c7099
Compare
@robodoo r+ |
In odoo, as we suggest everyone to follow an alphebetic order. The translator(`_`), ASCII is 95 and `a` ASCII value is 97 which '_' < 'a', the translator should be defined first in the import before the `api` not at the end of the import This commits adds an example to import static class `Command` with a Capital alphabet with a ASCII value of `C` as 67 which will be before than the `_` 'C' < '_' < 'a' This order of import should be followed while the import closes #11983 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Hello @AntoineVDV and @hamo-odoo |
I'm planning on rewriting the whole guidelines soon™, so until then, I merge all change requests that go in the right direction, and I will elaborate further during the rewrite. |
For the reference, I have created the PR- #12951 |
In odoo, as we suggest everyone to follow an alphebetic order.
The translator(
_
), ASCII is 95 anda
ASCII value is 97 which '_' < 'a', the translator should be defined first in the import before theapi
not at the end of the importThis commits adds an example to import static class
Command
with a Capital alphabet with a ASCII value ofC
as 67 which will be before than the_
'C' < '_' < 'a'
This order of import should be followed while the import