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:
commit
e7361cc4d5
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue