Fixed bug about message send date

bzr revid: nicolas.vanhoren@openerp.com-20130128165753-r493udz0m889haf7
This commit is contained in:
niv-openerp 2013-01-28 17:57:53 +01:00
parent a58f5114e6
commit 54e12863f3
2 changed files with 1 additions and 2 deletions

View File

@ -281,7 +281,6 @@ define(["nova", "jquery", "underscore", "oeclient", "require"], function(nova, $
send_it().then(_.bind(function() {
this._add_bubble(this.me, mes, new Date());
}, this), function(error, e) {
e.preventDefault();
tries += 1;
if (tries < 3)
return send_it();

View File

@ -157,7 +157,7 @@ class im_message(osv.osv):
}
_defaults = {
'date': datetime.datetime.now().strftime(DEFAULT_SERVER_DATETIME_FORMAT),
'date': lambda *args: datetime.datetime.now().strftime(DEFAULT_SERVER_DATETIME_FORMAT),
}
def get_messages(self, cr, uid, last=None, users_watch=None, context=None):