@@ -0,0 +1,1928 @@
+# Copyright (C) 2021 - TODAY, Marcel Savegnago %3Cmarcel.savegnago@escodoo.com.br%3E%0A# License AGPL-3.0 or later (%0A# http://www.gnu.org/licenses/agpl.html).%0A%0Afrom openupgradelib import openupgrade%0A%0A_field_renames = %5B%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_pis_ret_base%22,%0A        %22amount_pis_wh_base%22,%0A    ),%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_cofins_ret_base%22,%0A        %22amount_confis_wh_base%22,%0A    ),%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_issqn_ret_base%22,%0A        %22amount_issqn_wh_base%22,%0A    ),%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_csll_ret_base%22,%0A        %22amount_csll_wh_base%22,%0A    ),%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_irpj_ret_base%22,%0A        %22amount_irpj_wh_base%22,%0A    ),%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_pis_ret_value%22,%0A        %22amount_pis_wh_value%22,%0A    ),%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_cofins_ret_value%22,%0A        %22amount_confis_wh_value%22,%0A    ),%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_issqn_ret_value%22,%0A        %22amount_issqn_wh_value%22,%0A    ),%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_csll_ret_value%22,%0A        %22amount_csll_wh_value%22,%0A    ),%0A    (%0A        %22l10n_br_fiscal.document.mixin%22,%0A        %22l10n_br_fiscal_document_mixin%22,%0A        %22amount_irpj_ret_value%22,%0A        %22amount_irpj_wh_value%22,%0A    ),%0A%5D%0A%0A%0A@openupgrade.migrate(use_env=True)%0Adef migrate(env, version):%0A    openupgrade.rename_fields(env, _field_renames)%0A

add pre-migration script