[FIX] CRM: phone call ==> Set To TOdo from cancel state
authorAtik Agewan (OpenERP) <aag@tinyerp.com>
Thu, 8 Dec 2011 09:54:39 +0000 (15:24 +0530)
committerAtik Agewan (OpenERP) <aag@tinyerp.com>
Thu, 8 Dec 2011 09:54:39 +0000 (15:24 +0530)
bzr revid: aag@tinyerp.com-20111208095439-n1tul9vrcf6s8mcb

addons/crm/crm_phonecall.py

index b9bb6d3..4246fa4 100644 (file)
@@ -118,7 +118,7 @@ class crm_phonecall(crm_base, osv.osv):
         """Resets case as Todo
         """
         res = super(crm_phonecall, self).case_reset(cr, uid, ids, args, 'crm.phonecall')
-        self.write(cr, uid, ids, {'duration': 0.0})
+        self.write(cr, uid, ids, {'duration': 0.0, 'state':'open'})
         return res