From fc30f2917fc03904ef5615183b7f70fdcea8a9a9 Mon Sep 17 00:00:00 2001 From: SlWa99 Date: Thu, 15 Jan 2026 13:21:02 +0100 Subject: [PATCH 1/3] [T2866] FIX: Enable manual sorting fot gifts and engagement types --- my_compassion/controllers/my2_gifts.py | 5 ++++- my_compassion/views/product_view.xml | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/my_compassion/controllers/my2_gifts.py b/my_compassion/controllers/my2_gifts.py index b1753a182..d115261cb 100644 --- a/my_compassion/controllers/my2_gifts.py +++ b/my_compassion/controllers/my2_gifts.py @@ -26,7 +26,10 @@ def render_donation_page(self, type="fund", **kwargs): ("my_compassion_donation_type", "=", type), ] - my_compassion_gifts = request.env["product.template"].search(domain) + my_compassion_gifts = request.env["product.template"].search( + domain, + order='sequence' + ) return request.render( "my_compassion.my2_gifts_page", { diff --git a/my_compassion/views/product_view.xml b/my_compassion/views/product_view.xml index 17fb26ed0..4fdf53a87 100644 --- a/my_compassion/views/product_view.xml +++ b/my_compassion/views/product_view.xml @@ -109,4 +109,14 @@ + + product.template.tree.my.compassion.fix + product.template + + + + sequence, default_code, name + + + From 8d5fc627a54481b63f612445763bcf7fd9ff667f Mon Sep 17 00:00:00 2001 From: SlWa99 Date: Thu, 15 Jan 2026 13:24:13 +0100 Subject: [PATCH 2/3] [T2866] STYLE: Run pre-commit --- my_compassion/controllers/my2_gifts.py | 3 +-- my_compassion/views/product_view.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/my_compassion/controllers/my2_gifts.py b/my_compassion/controllers/my2_gifts.py index d115261cb..aca36b12c 100644 --- a/my_compassion/controllers/my2_gifts.py +++ b/my_compassion/controllers/my2_gifts.py @@ -27,8 +27,7 @@ def render_donation_page(self, type="fund", **kwargs): ] my_compassion_gifts = request.env["product.template"].search( - domain, - order='sequence' + domain, order="sequence" ) return request.render( "my_compassion.my2_gifts_page", diff --git a/my_compassion/views/product_view.xml b/my_compassion/views/product_view.xml index 4fdf53a87..d256d2bc2 100644 --- a/my_compassion/views/product_view.xml +++ b/my_compassion/views/product_view.xml @@ -112,7 +112,7 @@ product.template.tree.my.compassion.fix product.template - + sequence, default_code, name From 56095f2a484982c498aa8c713cdadc0f9cc07e3c Mon Sep 17 00:00:00 2001 From: Walid <94690298+SlWa99@users.noreply.github.com> Date: Thu, 15 Jan 2026 13:56:47 +0100 Subject: [PATCH 3/3] Update my_compassion/views/product_view.xml Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- my_compassion/views/product_view.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/my_compassion/views/product_view.xml b/my_compassion/views/product_view.xml index d256d2bc2..cdd8dc5b8 100644 --- a/my_compassion/views/product_view.xml +++ b/my_compassion/views/product_view.xml @@ -109,8 +109,8 @@ - - product.template.tree.my.compassion.fix + + product.template.tree.my.compassion.order product.template