From 2476ecd6da5a97c001bb461feeb6542e01182e4d Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 17 Jan 2011 16:24:35 +0100 Subject: [PATCH] [FIX] web_livechat: change check of contract bzr revid: chs@openerp.com-20110117152435-ddsrmmkhqeldid30 --- addons/web_livechat/publisher_warranty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_livechat/publisher_warranty.py b/addons/web_livechat/publisher_warranty.py index dfbef00c507..07f5430a136 100644 --- a/addons/web_livechat/publisher_warranty.py +++ b/addons/web_livechat/publisher_warranty.py @@ -27,7 +27,7 @@ class publisher_warranty_contract(osv.osv): @cache(skiparg=3, timeout=300) def is_livechat_enable(self, cr, uid): - domain = [('state', '=', 'valid'), ('kind', '=', 'support')] + domain = [('state', '=', 'valid'), ('check_support', '=', True)] return self.search_count(cr, uid, domain) != 0 @cache(skiparg=3)