From f156c60e7740a7d68e1618eba80b13490cbd6f30 Mon Sep 17 00:00:00 2001 From: "ajay javiya (OpenERP)" Date: Thu, 23 Jan 2014 20:23:33 +0530 Subject: [PATCH] [IMP]: code bzr revid: aja@tinyerp.com-20140123145333-tt2mg50ba5zzi63g --- addons/website_quotation/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_quotation/controllers/main.py b/addons/website_quotation/controllers/main.py index 63d60c0a988..60a0e7a6440 100644 --- a/addons/website_quotation/controllers/main.py +++ b/addons/website_quotation/controllers/main.py @@ -37,7 +37,7 @@ class sale_quote(http.Controller): order = request.registry.get('sale.order').browse(request.cr, token and SUPERUSER_ID or request.uid, order_id) if token: assert token == order.access_token, 'Access denied, wrong token!' if request.uid == self.get_public_user(request.cr, SUPERUSER_ID, request.context): - if request.httprequest.session.get('viewd',False): + if not request.httprequest.session.get('viewd',False): self.message_post('Quotation viewed by Customer', order_id, 'comment') request.httprequest.session['viewd'] = True # TODO: if not order.template_id: return to the URL of the portal view of SO