[MERGE] from trunk

bzr revid: chm@openerp.com-20130131094016-245nk6scqsdkzyl0
This commit is contained in:
Christophe Matthieu
2013-01-31 10:40:16 +01:00
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -63,8 +63,8 @@ instance.edi.EdiImport = instance.web.Widget.extend({
on_imported_error: function(response){
var self = this;
var msg = _t("Sorry, the document could not be imported.");
if (response.data.fault_code) {
msg += "\n " + _t("Reason:") + response.data.fault_code;
if (response.data.message) {
msg += "\n " + _t("Reason:") + response.data.message;
}
var params = {error: response, message: msg};
$(instance.web.qweb.render("CrashManager.warning", params)).dialog({
+1 -2
View File
@@ -1,5 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
@@ -227,7 +227,7 @@ openerp.web_analytics = function(instance) {
if (error.code) {
t._push_event({
'category': error.message,
'action': error.data.fault_code,
'action': error.data.message,
'label': url,
'noninteraction': true,
});