From 7904691065f3b4b99a272d18b8a17958b276ed8a Mon Sep 17 00:00:00 2001 From: ByteMe <157343079+ByteMeAsap@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:46:03 +0530 Subject: [PATCH] Fix issue with date --- membership_subscription/models/sale_subscription.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/membership_subscription/models/sale_subscription.py b/membership_subscription/models/sale_subscription.py index db85f47..02c0e4b 100644 --- a/membership_subscription/models/sale_subscription.py +++ b/membership_subscription/models/sale_subscription.py @@ -10,7 +10,7 @@ class SaleSubscription(models.Model): def calculate_recurring_next_date(self, start_date): if self.account_invoice_ids_count == 0: - self.recurring_next_date = date.today + self.recurring_next_date = date.today() else: if self.sale_subscription_line_ids.mapped("product_id").filtered( lambda x: x.first_of_period_billing_policy