From 26591ba68554e61f821f9cd811fd64d013ddab84 Mon Sep 17 00:00:00 2001 From: Vildan Safin Date: Mon, 25 May 2020 17:51:24 +0500 Subject: [PATCH] :bomb: Litle fix to avoid a huge error Signed-off-by: Vildan Safin --- saas_apps/controllers/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/saas_apps/controllers/main.py b/saas_apps/controllers/main.py index fc33616c4..0379fb564 100644 --- a/saas_apps/controllers/main.py +++ b/saas_apps/controllers/main.py @@ -119,7 +119,11 @@ def cart_update_price_page(self, **kw): user_product.price = kw.get('user_price') if not period == 'm': user_product.price *= 12 - old_user_cnt, user_cnt = float(kw.get('old_user_cnt')), float(kw.get('user_cnt')) + import wdb;wdb.set_trace() + old_user_cnt = 0 + if kw.get('old_user_cnt'): + old_user_cnt = float(kw.get('old_user_cnt')) + user_cnt = float(kw.get('user_cnt')) if not old_user_cnt: old_user_cnt = 0 sale_order._cart_update(