Skip to content

Commit

Permalink
Merge pull request #1218 from NextERP-Romania/14.0
Browse files Browse the repository at this point in the history
Update migration script
  • Loading branch information
feketemihai authored Jan 27, 2025
2 parents 5356ef7 + 116610c commit 6779c42
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion l10n_ro_account_edi_ubl/migrations/14.0.1.35.4/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ def install(package):

@openupgrade.migrate(use_env=True)
def migrate(env, version):

if not openupgrade.column_exists(
env.cr, "res_partner", "l10n_ro_edi_ubl_no_send_cnp"
):
env.cr.execute(
"""
ALTER TABLE res_partner
ADD COLUMN l10n_ro_edi_ubl_no_send_cnp boolean;
"""
)
openupgrade.logged_query(
env.cr,
"""
Expand Down

0 comments on commit 6779c42

Please sign in to comment.