Vauxoo / pylint-odoo

1 stars 4 forks source link

[IMP] Add test to avoid 'string' field parameter being the same as field attribute name #92

Closed tomeyro closed 7 years ago

tomeyro commented 7 years ago

In models, 'string' field parameter is not necessary if it's the same as field attribute name (underscores replaced with spaces and only the first letter in uppercase).

field_name = fields.{Type}(string="Field name") # Emit message field_name = fields.{Type}(string="Field Name") # Don't emit message field_name = fields.{Type}(string="My field") # Don't emit message