Skip to content

Conversation

fw-bot
Copy link
Collaborator

@fw-bot fw-bot commented 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

Forward-Port-Of: #14679

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

X-original-commit: 9fa2ffd
@robodoo
Copy link
Collaborator

robodoo commented Sep 29, 2025

Pull request status dashboard

@fw-bot
Copy link
Collaborator Author

fw-bot commented Sep 29, 2025

This PR targets saas-18.4 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

robodoo pushed a commit that referenced this pull request Sep 30, 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 #14709

X-original-commit: 9fa2ffd
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
@robodoo robodoo closed this Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants