odoo/documentation#14679
Created by Accounting, Florian Gilbert (flg)
Merged
at 9fa2ffdeaed77fbc061fc9177738b15c969582a3
Statuses:
- ci/documentation: (runtime 833s)
- ci/codeowner_coverage: (runtime 17s)
- label
- FlorianGilbert:17.0-fix-camel-case-for-pascal-case-flg
- head
- ed813c2bf0e3d67d6a2eeae8c8a058a775e28571
- merged
- 2 days ago by Sales, Antoine Vandevenne (anv)
odoo/documentation | |
---|---|
17.0 | #14679 |
18.0 | #14706 |
saas-18.2 | #14707 |
saas-18.3 | #14708 |
saas-18.4 | #14709 |
19.0 | #14710 |
master | #14711 |
[FIX] coding_guidelines: Change camelcase for Pascal case
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