diff --git a/document_page_reference/models/document_page.py b/document_page_reference/models/document_page.py index 5dea1ea4..5c5fd37e 100644 --- a/document_page_reference/models/document_page.py +++ b/document_page_reference/models/document_page.py @@ -47,7 +47,6 @@ except Exception: class DocumentPage(models.Model): - _inherit = "document.page" reference = fields.Char( @@ -144,7 +143,7 @@ class DocumentPage(models.Model): try: self._validate_reference(reference=reference) vals["reference"] = reference - except ValidationError: # pylint: disable=W7938 + except ValidationError: # pylint: disable=W8138 # Do not fill reference. pass - return super(DocumentPage, self).create(vals_list) + return super().create(vals_list) diff --git a/document_page_reference/tests/test_document_reference.py b/document_page_reference/tests/test_document_reference.py index cdaea885..1a2ba268 100644 --- a/document_page_reference/tests/test_document_reference.py +++ b/document_page_reference/tests/test_document_reference.py @@ -8,7 +8,7 @@ from odoo.tests.common import TransactionCase class TestDocumentReference(TransactionCase): @classmethod def setUpClass(cls): - super(TestDocumentReference, cls).setUpClass() + super().setUpClass() cls.page_obj = cls.env["document.page"] cls.history_obj = cls.env["document.page.history"] cls.page1 = cls.page_obj.create(