Skip to content

Commit

Permalink
[IMP] Migración desde la 8.0 con nubea_account_asset_utilities instal…
Browse files Browse the repository at this point in the history
…ado.
  • Loading branch information
zamberjo committed Jan 17, 2025
1 parent d6afdcf commit 8443ef8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions account_asset_management/migrations/12.0.1.0.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,19 @@ def migrate(env, version):
openupgrade.rename_tables(cr, _table_renames)
openupgrade.copy_columns(cr, _column_copies)
openupgrade.rename_columns(cr, _column_renames)
# nubaea_account_asset_utilities añade estos campos
if openupgrade.column_exists(cr, 'account_asset', 'date_start'):
openupgrade.rename_fields(
env,
[
(
"account.asset",
"account_asset",
"date_start",
"nubea_date_start",
),
],
)
openupgrade.rename_fields(env, _field_renames)
openupgrade.rename_xmlids(cr, _xml_ids_renames)
handle_account_asset_disposal_migration(env)
Expand Down

0 comments on commit 8443ef8

Please sign in to comment.