Skip to content

Commit

Permalink
[OU-FIX] account_check_printing: Proper SQL string
Browse files Browse the repository at this point in the history
The formatting should be done regularly, or the value that will be
used will be literally `openupgrade_legacy_13_0_check_number`.

TT46186
  • Loading branch information
pedrobaeza committed Nov 27, 2023
1 parent 3698638 commit f468503
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ def map_account_payment_check_number(env):
openupgrade.logged_query(
env.cr, """
UPDATE account_payment
SET check_number = '' || %s
SET check_number = %s::VARCHAR
WHERE %s IS NOT NULL
""", (openupgrade.get_legacy_name('check_number'),
openupgrade.get_legacy_name('check_number'))
""" % (
openupgrade.get_legacy_name('check_number'),
openupgrade.get_legacy_name('check_number')
)
)


Expand Down

0 comments on commit f468503

Please sign in to comment.