Skip to content

Commit

Permalink
[FIX] l10n_it_account_stamp: stamp lines migration
Browse files Browse the repository at this point in the history
  • Loading branch information
primes2h committed Feb 6, 2025
1 parent 335fd9f commit a2b5354
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions l10n_it_account_stamp/migrations/16.0.1.0.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2025 Sergio Zanchetta
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.logged_query(
env.cr,
"""
UPDATE account_move_line
SET
display_type = 'cog'
WHERE
is_stamp_line = True;
""",
)

0 comments on commit a2b5354

Please sign in to comment.