Skip to content

Commit

Permalink
[FIX] account_payment_order: Proper related populating SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed May 27, 2019
1 parent b333af7 commit 442f06c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions account_payment_order/migrations/9.0.1.0.0/pre-migration.py
Expand Up @@ -172,9 +172,9 @@ def populate_computed_fields(env):
openupgrade.logged_query(
cr, """
UPDATE account_payment_order apo
SET company_currency_id = apm.currency_id
FROM account_payment_mode apm
WHERE apm.id = apo.payment_mode_id""",
SET company_currency_id = rc.currency_id
FROM res_company rc
WHERE rc.id = apo.company_id""",
)
openupgrade.logged_query(
cr, """
Expand Down

0 comments on commit 442f06c

Please sign in to comment.