Browse Source

[MIG] auditlog: Migration to 12.0

pull/1556/head
sebalix 6 years ago
parent
commit
7691a6d5a1
  1. 6
      auditlog/__manifest__.py
  2. 2
      auditlog/models/autovacuum.py
  3. 2
      auditlog/models/http_request.py
  4. 2
      auditlog/models/http_session.py
  5. 2
      auditlog/models/log.py
  6. 2
      auditlog/models/rule.py
  7. 8
      auditlog/tests/test_auditlog.py
  8. 2
      auditlog/tests/test_autovacuum.py

6
auditlog/__manifest__.py

@ -1,12 +1,12 @@
# © 2015 ABF OSIELL <https://osiell.com>
# Copyright 2015 ABF OSIELL <https://osiell.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{ {
'name': "Audit Log", 'name': "Audit Log",
'version': "11.0.1.0.0",
'version': "12.0.1.0.0",
'author': "ABF OSIELL,Odoo Community Association (OCA)", 'author': "ABF OSIELL,Odoo Community Association (OCA)",
'license': "AGPL-3", 'license': "AGPL-3",
'website': "https://www.osiell.com",
'website': "https://github.com/OCA/server-tools/",
'category': "Tools", 'category': "Tools",
'depends': [ 'depends': [
'base', 'base',

2
auditlog/models/autovacuum.py

@ -1,4 +1,4 @@
# © 2016 ABF OSIELL <https://osiell.com>
# Copyright 2016 ABF OSIELL <https://osiell.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging import logging
from datetime import datetime, timedelta from datetime import datetime, timedelta

2
auditlog/models/http_request.py

@ -1,4 +1,4 @@
# © 2015 ABF OSIELL <https://osiell.com>
# Copyright 2015 ABF OSIELL <https://osiell.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from psycopg2.extensions import AsIs from psycopg2.extensions import AsIs

2
auditlog/models/http_session.py

@ -1,4 +1,4 @@
# © 2015 ABF OSIELL <https://osiell.com>
# Copyright 2015 ABF OSIELL <https://osiell.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models, fields, api from odoo import models, fields, api

2
auditlog/models/log.py

@ -1,4 +1,4 @@
# © 2015 ABF OSIELL <https://osiell.com>
# Copyright 2015 ABF OSIELL <https://osiell.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models, fields from odoo import models, fields

2
auditlog/models/rule.py

@ -1,4 +1,4 @@
# © 2015 ABF OSIELL <https://osiell.com>
# Copyright 2015 ABF OSIELL <https://osiell.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models, fields, api, modules, _ from odoo import models, fields, api, modules, _

8
auditlog/tests/test_auditlog.py

@ -1,9 +1,9 @@
# © 2015 Therp BV <https://therp.nl>
# Copyright 2015 Therp BV <https://therp.nl>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase from odoo.tests.common import TransactionCase
class TestAuditlog(object):
class AuditlogCommon(object):
def test_LogCreation(self): def test_LogCreation(self):
"""First test, caching some data.""" """First test, caching some data."""
@ -81,7 +81,7 @@ class TestAuditlog(object):
]).ensure_one()) ]).ensure_one())
class TestAuditlogFull(TransactionCase, TestAuditlog):
class TestAuditlogFull(TransactionCase, AuditlogCommon):
def setUp(self): def setUp(self):
super(TestAuditlogFull, self).setUp() super(TestAuditlogFull, self).setUp()
@ -101,7 +101,7 @@ class TestAuditlogFull(TransactionCase, TestAuditlog):
super(TestAuditlogFull, self).tearDown() super(TestAuditlogFull, self).tearDown()
class TestAuditlogFast(TransactionCase, TestAuditlog):
class TestAuditlogFast(TransactionCase, AuditlogCommon):
def setUp(self): def setUp(self):
super(TestAuditlogFast, self).setUp() super(TestAuditlogFast, self).setUp()

2
auditlog/tests/test_autovacuum.py

@ -1,4 +1,4 @@
# © 2016 ABF OSIELL <https://osiell.com>
# Copyright 2016 ABF OSIELL <https://osiell.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import time import time

Loading…
Cancel
Save