[OU] account_banking_mandate: Transfer mandate in invoices

account_banking_mandate 13.0.1.1.2
This commit is contained in:
Pedro M. Baeza
2020-12-04 19:58:15 +01:00
committed by Reyes4711
parent 0eef296b8d
commit ca63a4b8f7
2 changed files with 9 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
{
"name": "Account Banking Mandate",
"summary": "Banking mandates",
"version": "13.0.1.1.1",
"version": "13.0.1.1.2",
"license": "AGPL-3",
"author": "Compassion CH, "
"Tecnativa, "

View File

@@ -9,3 +9,11 @@ def migrate(env, version):
openupgrade.load_data(
env.cr, "account_banking_mandate", "migrations/13.0.1.0.0/noupdate_changes.xml"
)
openupgrade.logged_query(
env.cr,
"""
UPDATE account_move am
SET mandate_id = ai.mandate_id
FROM account_invoice ai
WHERE ai.id = am.old_invoice_id""",
)