Skip to content

Commit

Permalink
Simple implementation of subscription trial period
Browse files Browse the repository at this point in the history
  • Loading branch information
tarteo committed Mar 27, 2024
1 parent 082fdd1 commit 98b46ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions argocd_sale/models/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98b46ef

Please sign in to comment.