← Back to team overview

credativ team mailing list archive

[Branch ~credativ/openobject-addons/6.1] Rev 7061: [IMP] Set a default date on mail messages so sent mail has a date

 

------------------------------------------------------------
revno: 7061
committer: Craig Gowing (credativ) <craig.gowing@xxxxxxxxxxxxxx>
branch nick: addons
timestamp: Wed 2014-10-01 13:38:40 +0100
message:
  [IMP] Set a default date on mail messages so sent mail has a date
modified:
  mail/mail_message.py


--
lp:~credativ/openobject-addons/6.1
https://code.launchpad.net/~credativ/openobject-addons/6.1

Your team credativ is subscribed to branch lp:~credativ/openobject-addons/6.1.
To unsubscribe from this branch go to https://code.launchpad.net/~credativ/openobject-addons/6.1/+edit-subscription
=== modified file 'mail/mail_message.py'
--- mail/mail_message.py	2012-09-24 14:02:33 +0000
+++ mail/mail_message.py	2014-10-01 12:38:40 +0000
@@ -94,7 +94,8 @@
     }
 
     _defaults = {
-        'subtype': 'plain'
+        'subtype': 'plain',
+        'date': lambda *a: time.strftime("%Y-%m-%d %H:%M:%S")
     }
 
 class mail_message(osv.osv):