[FIX] crm_helpdesk : Send Reminder doesn't work.

bzr revid: mdi@tinyerp.com-20120917101109-owcdooikeo6ecv23
This commit is contained in:
Divyesh Makwana (Open ERP)
2012-09-17 15:41:09 +05:30
parent 3bdedaeb24
commit ff4347bebd
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ class base_stage(object):
destination=False)
def remind_user(self, cr, uid, ids, context=None, attach=False, destination=True):
if 'message_post' in self:
if hasattr(self, 'message_post'):
for case in self.browse(cr, uid, ids, context=context):
if destination:
recipient_id = case.user_id.partner_id.id
+2 -1
View File
@@ -20,6 +20,7 @@
##############################################################################
from base_status.base_state import base_state
from base_status.base_stage import base_stage
from crm import crm
from osv import fields, osv
import tools
@@ -31,7 +32,7 @@ CRM_HELPDESK_STATES = (
crm.AVAILABLE_STATES[4][0], # Pending
)
class crm_helpdesk(base_state, osv.osv):
class crm_helpdesk(base_state, base_stage, osv.osv):
""" Helpdesk Cases """
_name = "crm.helpdesk"