|
@ -27,9 +27,8 @@ function validStrColour(strToTest) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
core.bus.on('web_client_ready', null, function () { |
|
|
core.bus.on('web_client_ready', null, function () { |
|
|
var ribbon = $('.test-ribbon'); |
|
|
|
|
|
// If ribbon is found in DOM
|
|
|
|
|
|
if (ribbon.length) { |
|
|
|
|
|
|
|
|
var ribbon = $('<div class="test-ribbon"/>'); |
|
|
|
|
|
$('body').append(ribbon); |
|
|
ribbon.hide(); |
|
|
ribbon.hide(); |
|
|
model.call('get_param', ['ribbon.name']).then( |
|
|
model.call('get_param', ['ribbon.name']).then( |
|
|
function (name) { |
|
|
function (name) { |
|
@ -55,7 +54,6 @@ core.bus.on('web_client_ready', null, function () { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
} |
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}); // odoo.define
|
|
|
}); // odoo.define
|