From 98b46ef6d4da9e575147b46b4ed2f5848e49663b Mon Sep 17 00:00:00 2001 From: tarteo Date: Wed, 27 Mar 2024 09:05:00 +0100 Subject: [PATCH] Simple implementation of subscription trial period --- argocd_sale/models/subscription.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/argocd_sale/models/subscription.py b/argocd_sale/models/subscription.py index 517c4e6..bca19d1 100644 --- a/argocd_sale/models/subscription.py +++ b/argocd_sale/models/subscription.py @@ -13,8 +13,8 @@ class Subscription(models.Model): comodel_name="argocd.application", inverse_name="subscription_id" ) - def generate_invoice(self): - res = super().generate_invoice() + def create_invoice(self): + res = super().create_invoice() if ( self.sale_subscription_line_ids.filtered( lambda l: l.product_id.application_template_id