(env)
Migrate l10n.es.aeat.sii to l10n.es.aeat.certificate
Migrate l10n.es.aeat.sii to l10n.es.aeat.certificate
Migrate l10n . es . aeat . sii to l10n . es . aeat . certificate
def migrate_l10n_es_aeat_sii(env):
    """Migrate l10n.es.aeat.sii to l10n.es.aeat.certificate"""
    openupgrade.logged_query(
        env.cr,
        sql.SQL(
            """
        INSERT INTO l10n_es_aeat_certificate
        (name, state, file, date_start, date_end, folder,
         public_key, private_key, company_id)
        SELECT
        name, state, file, date_start, date_end, 'OU',
        public_key, private_key, company_id
        FROM l10n_es_aeat_sii
        """
        ),
    )
def migrate_l10n_es_aeat_sii ( env ) : openupgrade . logged_query ( env . cr , sql . SQL ( """
        INSERT INTO l10n_es_aeat_certificate
        (name, state, file, date_start, date_end, folder,
         public_key, private_key, company_id)
        SELECT
        name, state, file, date_start, date_end, 'OU',
        public_key, private_key, company_id
        FROM l10n_es_aeat_sii
        """ ) , )