Skip to content

Commit f96fc32

Browse files
authored
Merge pull request #3234 from Tecnativa/14.0-account-amount_residual_currency
[14.0][OU-FIX] account: Fill amount_residual_currency as well
2 parents 11ab113 + d192fb8 commit f96fc32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openupgrade_scripts/scripts/account/14.0.1.1/pre-migration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,8 @@ def fill_account_move_line_currency_id(env):
409409
env.cr,
410410
"""
411411
UPDATE account_move_line
412-
SET currency_id = company_currency_id
412+
SET currency_id = company_currency_id,
413+
amount_residual_currency = amount_residual
413414
WHERE currency_id IS NULL
414415
""",
415416
)

0 commit comments

Comments
 (0)