diff --git a/crowdfunding_compassion/__manifest__.py b/crowdfunding_compassion/__manifest__.py index 0080b40..8887428 100644 --- a/crowdfunding_compassion/__manifest__.py +++ b/crowdfunding_compassion/__manifest__.py @@ -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", 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 new file mode 100644 index 0000000..07923c5 --- /dev/null +++ b/crowdfunding_compassion/migrations/14.0.1.0.1/post-migration.py @@ -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() diff --git a/crowdfunding_compassion/templates/homepage.xml b/crowdfunding_compassion/templates/homepage.xml index 5fdb082..d415b25 100644 --- a/crowdfunding_compassion/templates/homepage.xml +++ b/crowdfunding_compassion/templates/homepage.xml @@ -64,9 +64,9 @@ -

+

-

+