From 9b2c0adf51497d4741d2095a047b48b69b6edfaa Mon Sep 17 00:00:00 2001 From: laurens kooijman Date: Tue, 16 Jun 2026 09:29:13 +0200 Subject: [PATCH 1/3] feat(snippets): new snippet sale_subscription.subscription_portal_content --- ...ment_when_sale_order_not_in_state_sale.xml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 snippets/mint_system.sale_subscription.subscription_portal_content.anticipate_payment_when_sale_order_not_in_state_sale.xml diff --git a/snippets/mint_system.sale_subscription.subscription_portal_content.anticipate_payment_when_sale_order_not_in_state_sale.xml b/snippets/mint_system.sale_subscription.subscription_portal_content.anticipate_payment_when_sale_order_not_in_state_sale.xml new file mode 100644 index 00000000..a4494d77 --- /dev/null +++ b/snippets/mint_system.sale_subscription.subscription_portal_content.anticipate_payment_when_sale_order_not_in_state_sale.xml @@ -0,0 +1,28 @@ + + +
+

+

Reopen your subscription

+ Your subscription is closed. + If you wish to reopen it, you can pay your invoice for the current invoicing period. + If you wish to reopen it, the missing payments (from to this day) will be automatically processed. +

+

Anticipate payment

+
+
+ + There is already a pending payment for this subscription. + +
+
+
+
+ + + + + +
+
+
+
\ No newline at end of file From 6472b71723703cd781e38821b9e99f56aa998acd Mon Sep 17 00:00:00 2001 From: laurens kooijman Date: Tue, 16 Jun 2026 09:39:25 +0200 Subject: [PATCH 2/3] feat(snippet): name change --- ...tion.subscription_portal_content.conditional_payment_form.xml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename snippets/{mint_system.sale_subscription.subscription_portal_content.anticipate_payment_when_sale_order_not_in_state_sale.xml => mint_system.sale_subscription.subscription_portal_content.conditional_payment_form.xml} (100%) diff --git a/snippets/mint_system.sale_subscription.subscription_portal_content.anticipate_payment_when_sale_order_not_in_state_sale.xml b/snippets/mint_system.sale_subscription.subscription_portal_content.conditional_payment_form.xml similarity index 100% rename from snippets/mint_system.sale_subscription.subscription_portal_content.anticipate_payment_when_sale_order_not_in_state_sale.xml rename to snippets/mint_system.sale_subscription.subscription_portal_content.conditional_payment_form.xml From 863515853dfe6baa707f78109bc0b11783d4e1c2 Mon Sep 17 00:00:00 2001 From: laurens kooijman Date: Tue, 16 Jun 2026 16:48:17 +0200 Subject: [PATCH 3/3] feat(snippets): reduced content to just change attribute sale_subscription.subscription_portal_content --- ...ortal_content.conditional_payment_form.xml | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/snippets/mint_system.sale_subscription.subscription_portal_content.conditional_payment_form.xml b/snippets/mint_system.sale_subscription.subscription_portal_content.conditional_payment_form.xml index a4494d77..b0f19ba2 100644 --- a/snippets/mint_system.sale_subscription.subscription_portal_content.conditional_payment_form.xml +++ b/snippets/mint_system.sale_subscription.subscription_portal_content.conditional_payment_form.xml @@ -1,28 +1,5 @@ - -
-

-

Reopen your subscription

- Your subscription is closed. - If you wish to reopen it, you can pay your invoice for the current invoicing period. - If you wish to reopen it, the missing payments (from to this day) will be automatically processed. -

-

Anticipate payment

-
-
- - There is already a pending payment for this subscription. - -
-
-
-
- - - - - -
-
+ + (providers_sudo or tokens_sudo) and (next_billing_details.get('next_invoice_amount')> 0) and sale_order.state != 'sale'
\ No newline at end of file