Skip to content

Commit

Permalink
T1086 FIX TOGETHER barometers
Browse files Browse the repository at this point in the history
- ADD missing migration
  • Loading branch information
ecino committed May 14, 2024
1 parent d88f424 commit 0ce7123
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crowdfunding_compassion/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# pylint: disable=C8101
{
"name": "Crowdfunding Compassion",
"version": "14.0.1.0.0",
"version": "14.0.1.0.1",
"author": "Compassion CH",
"license": "AGPL-3",
"website": "https://github.com/CompassionCH/compassion-website",
Expand Down
13 changes: 13 additions & 0 deletions crowdfunding_compassion/migrations/14.0.1.0.1/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
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()
4 changes: 2 additions & 2 deletions crowdfunding_compassion/templates/homepage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
<t t-esc="impact[fund]['value']" />
</h4>

<p class="count-text">
<h5 class="text-primary">
<t t-esc="impact[fund]['text']" />
</p>
</h5>
</div>
</t>
</div>
Expand Down

0 comments on commit 0ce7123

Please sign in to comment.