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:
Mohamed Eltayar 2025-12-04 11:40:13 +03:00 committed by GitHub
commit c5f5b078e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 21 additions and 0 deletions

View File

@ -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)