Skip to content

Commit

Permalink
Merge PR OCA#90 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 3, 2020
2 parents 2c4cf46 + 5cf0933 commit d919b38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions account_financial_risk/hooks.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import tools


def pre_init_hook(cr):
if tools.column_exists(cr, "account_move", "company_currency_id"):
return
cr.execute("""
ALTER TABLE account_invoice
ADD COLUMN company_currency_id integer""")
Expand Down

0 comments on commit d919b38

Please sign in to comment.