Skip to content

Conversation

@FlorianGilbert
Copy link
Contributor

The coding guidelines establish that we have to write class declaration for both Python and JavaScript in camel case but it's actually in Pascal case. It also establishing that model variable (ex: Partner = self.env['res.partner]') has to be in camel case but it's actually following the Pascal case.

Pascal case has to start all variables with a capital letter where camel case is starting with a lower case letter.

Source: https://builtin.com/articles/pascal-case-vs-camel-case

no task id

The coding guidelines establish that we have to write class
declaration for both Python and JavaScript in camel case but
it's actually in Pascal case. It also establishing that model
variable (ex: `Partner = self.env['res.partner]'`) has to be
in camel case but it's actually following the Pascal case.

Pascal case has to start all variables with a capital letter
where camel case is starting with a lower case letter.

Source: https://builtin.com/articles/pascal-case-vs-camel-case

no task id
@robodoo
Copy link
Collaborator

robodoo commented Sep 25, 2025

Pull request status dashboard

@C3POdoo C3POdoo requested a review from a team September 25, 2025 13:58
Copy link
Collaborator

@AntoineVDV AntoineVDV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

robodoo pushed a commit that referenced this pull request Sep 29, 2025
The coding guidelines establish that we have to write class
declaration for both Python and JavaScript in camel case but
it's actually in Pascal case. It also establishing that model
variable (ex: `Partner = self.env['res.partner]'`) has to be
in camel case but it's actually following the Pascal case.

Pascal case has to start all variables with a capital letter
where camel case is starting with a lower case letter.

Source: https://builtin.com/articles/pascal-case-vs-camel-case

no task id

closes #14679

Signed-off-by: Antoine Vandevenne (anv) <[email protected]>
@robodoo robodoo closed this Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants