pre-migration.py 325 B

123456789
  1. # -*- coding: utf-8 -*-
  2. # © 2015 Therp BV <http://therp.nl>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from openerp.addons.auditlog import migrate_from_audittrail
  5. def migrate(cr, version):
  6. """if we migrate from an older version, it's a migration from audittrail"""
  7. migrate_from_audittrail(cr)