[FIX] remove useless lambda on default
authorThibault Francois <tfr@openerp.com>
Mon, 31 Jan 2011 13:29:31 +0000 (14:29 +0100)
committerThibault Francois <tfr@openerp.com>
Mon, 31 Jan 2011 13:29:31 +0000 (14:29 +0100)
bzr revid: tfr@openerp.com-20110131132931-ejn6xclvz2hyiweb

addons/crm/crm_phonecall.py

index 2b2066f..1ee36ce 100644 (file)
@@ -85,10 +85,10 @@ class crm_phonecall(crm_case, osv.osv):
 
     _defaults = {
         'date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'), 
-        'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0], 
-        'state': lambda *a: 'open', 
+        'priority': crm.AVAILABLE_PRIORITIES[2][0], 
+        'state':  'open', 
         'user_id': lambda self,cr,uid,ctx: uid,
-        'active': lambda *a: 1, 
+        'active': 1, 
     }
     
     # From crm.case