Odoo Experience 2017
Auto-Detecting Common Coding Mistakes for Odoo Modules Using Pylint for Odoo
Developer
Lieu : Aula Magna / Lauzelle - 05/10/2017 11:30 - 05/10/2017 11:50 (Europe/Brussels) (20 minutes)
Auto-Detecting Common Coding Mistakes for Odoo Modules Using Pylint for Odoo
Moisés Augusto López Calderón
Director à Vauxoo S.A. de C.V.
Moisés Augusto López Calderón
Director à Vauxoo S.A. de C.V.

Odoo developer from 4.2 version Vauxoo Developer Manager Active member of Odoo Community Association Developer of Quality Tools like as travis2docker and runbot dockerized builds, pylint-odoo


What will you learn from this talk: Use (1) pylint-odoo python package. Example:

- I missed call method _('') to translate.

- I have duplicated a xml_id

- I have duplicated a csv_id - I have duplicated a tag <field name="name"

- Dangerous method "eval" is used! And other common coding mistakes.

There are common developer mistakes coding an Odoo module that can be detected from a static python code checker like a pylint customized to Odoo modules. We will show pylint static checker but using a customized python package for Odoo modules.The structure of this talk is as follows:

- Presentation

- How to install

- Creating a wrong Odoo module

- Detecting mistakes

- Fixing them (1) https://github.com/oca/pylint-odoo