From 85aba373ffde2c10eac863966112de702dc25435 Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Tue, 14 May 2024 16:06:29 +0200 Subject: [PATCH] T1188 FIX MyCompassion layout --- .../migrations/14.0.1.0.1/post-migration.py | 6 ++++-- my_compassion/templates/my_account_my_children.xml | 4 ++-- my_compassion/templates/my_account_personal_info.xml | 2 +- theme_compassion/static/src/scss/primary_variables.scss | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/crowdfunding_compassion/migrations/14.0.1.0.1/post-migration.py b/crowdfunding_compassion/migrations/14.0.1.0.1/post-migration.py index 07923c5..0d52685 100644 --- a/crowdfunding_compassion/migrations/14.0.1.0.1/post-migration.py +++ b/crowdfunding_compassion/migrations/14.0.1.0.1/post-migration.py @@ -3,11 +3,13 @@ @openupgrade.migrate() def migrate(env, version): - env.cr.execute(""" + env.cr.execute( + """ UPDATE account_move_line ml SET crowdfunding_participant_id = il.crowdfunding_participant_id FROM account_invoice_line il WHERE ml.old_invoice_line_id = il.id AND il.crowdfunding_participant_id IS NOT NULL - """) + """ + ) env["product.template"].search([]).recompute_amount() diff --git a/my_compassion/templates/my_account_my_children.xml b/my_compassion/templates/my_account_my_children.xml index c9dc396..1b021ca 100644 --- a/my_compassion/templates/my_account_my_children.xml +++ b/my_compassion/templates/my_account_my_children.xml @@ -525,9 +525,9 @@