Merge pull request #5633 from expsa/14.0-fix-event_custom-auto-20251204_113737
[ADD] event_custom: improve data models and business logic
This commit is contained in:
commit
c5f5b078e5
|
|
@ -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)
|
||||||
Loading…
Reference in New Issue