diff --git a/odex-event/event_custom/models/quality_test.py b/odex-event/event_custom/models/quality_test.py new file mode 100644 index 000000000..93802be98 --- /dev/null +++ b/odex-event/event_custom/models/quality_test.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +from odoo import models, fields +import sys # F401: unused import + +class QualityTest(models.Model): + _name = 'quality.test' + _description = 'Code Quality Test' + + name = fields.Char('Name', required=True) + + # E501: line too long + description = fields.Text('Description', help='This is an extremely long help text that definitely exceeds the maximum recommended line length of 120 characters for PEP8 compliance') + + # F821: undefined variable + def broken_method(self): + return undefined_var + 10 + + # W293: blank line contains whitespace + + # E225: missing whitespace around operator + count=fields.Integer(default=0)