ingadhoc/odoo-argentina

View on GitHub
l10n_ar_invoice/migrations/8.0.3.1/pre-migrate.py

Summary

Maintainability
A
1 hr
Test Coverage
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in module root
# directory
##############################################################################
import logging
_logger = logging.getLogger(__name__)


def migrate(cr, version):
    _logger.info('Migrating l10n_ar_invoice from version %s' % version)
    cr.execute(
        "DELETE FROM ir_ui_view WHERE inherit_id is not null and model='argentinian.base.config.settings'")