Merge pull request #5640 from expsa/14.0-fix-event_custom-auto-20251204_145859

[FIX] event_custom: improve data models and business logic
This commit is contained in:
Mohamed Eltayar 2025-12-04 15:02:05 +03:00 committed by GitHub
commit e7361cc4d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
from odoo import models, fields
import unused_module # F401
class CodeQualityPRTest(models.Model):
_name = 'code.quality.test'
name = fields.Char('Name')
# E501
very_long_field = fields.Text('Field', help='This is an extremely long help text that exceeds the 120 character limit that we have configured in our flake8 settings')
# F821
def buggy_method(self):
return undefined + 1

View File

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
from odoo import models, fields
import os # F401: unused import
class FinalQualityTest(models.Model):
_name = 'final.quality.test'
name = fields.Char('Name')
# E501: line too long
description = fields.Text('Description', help='This is a very very very long help text that exceeds 120 characters limit set by our flake8 configuration')
# F821: undefined name
def test_method(self):
return some_undefined_variable + 5