|
@ -2,12 +2,14 @@ |
|
|
/* Copyright 2012-2015 Therp |
|
|
/* Copyright 2012-2015 Therp |
|
|
* Copyright 2016 - Tecnativa - Angel Moya <odoo@tecnativa.com> |
|
|
* Copyright 2016 - Tecnativa - Angel Moya <odoo@tecnativa.com> |
|
|
* Copyright 2017 - redO2oo - Robert Rottermann <robert@redO2oo.ch> |
|
|
* Copyright 2017 - redO2oo - Robert Rottermann <robert@redO2oo.ch> |
|
|
|
|
|
* Copyright 2018 - Therp BV |
|
|
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
|
|
|
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
|
|
|
|
|
|
|
|
|
odoo.define('web.support_branding', function(require) { |
|
|
odoo.define('web.support_branding', function(require) { |
|
|
var CrashManager = require('web.CrashManager'); |
|
|
var CrashManager = require('web.CrashManager'); |
|
|
var core = require('web.core'); |
|
|
var core = require('web.core'); |
|
|
var Model = require('web.Model'); |
|
|
var Model = require('web.Model'); |
|
|
|
|
|
var session = require('web.session'); |
|
|
var _t = core._t; |
|
|
var _t = core._t; |
|
|
CrashManager.include({ |
|
|
CrashManager.include({ |
|
|
init: function() { |
|
|
init: function() { |
|
@ -27,6 +29,7 @@ odoo.define('web.support_branding', function(require) { |
|
|
}, |
|
|
}, |
|
|
show_error: function(error) { |
|
|
show_error: function(error) { |
|
|
var self = this; |
|
|
var self = this; |
|
|
|
|
|
error._session = session; |
|
|
this._super.apply(this, arguments); |
|
|
this._super.apply(this, arguments); |
|
|
jQuery('.support-branding-submit-form').each(function() { |
|
|
jQuery('.support-branding-submit-form').each(function() { |
|
|
var $form = jQuery(this), |
|
|
var $form = jQuery(this), |
|
|