Fixed bug about message send date
bzr revid: nicolas.vanhoren@openerp.com-20130128165753-r493udz0m889haf7
This commit is contained in:
parent
a58f5114e6
commit
54e12863f3
|
@ -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();
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue