mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-16 12:12:57 -06:00
[FIX] pylint/javascript-lint
This commit is contained in:
parent
1a83e92a89
commit
e36e20e554
@ -21,7 +21,7 @@ odoo.define('document_url', function (require) {
|
|||||||
self.$el.find("a[href]").attr('target', '_blank');
|
self.$el.find("a[href]").attr('target', '_blank');
|
||||||
self.$el
|
self.$el
|
||||||
.find('.oe_sidebar_add_attachment, .o_sidebar_add_attachment')
|
.find('.oe_sidebar_add_attachment, .o_sidebar_add_attachment')
|
||||||
.after(QWeb.render('AddUrlDocumentItem', {widget: self}))
|
.after(QWeb.render('AddUrlDocumentItem', {widget: self}));
|
||||||
self.$el.find('.o_sidebar_add_url').on('click', function (e) {
|
self.$el.find('.o_sidebar_add_url').on('click', function (e) {
|
||||||
self.on_url_doc();
|
self.on_url_doc();
|
||||||
});
|
});
|
||||||
@ -29,7 +29,7 @@ odoo.define('document_url', function (require) {
|
|||||||
on_url_doc: function (event) {
|
on_url_doc: function (event) {
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
var env = self.env
|
var env = self.env;
|
||||||
var view = self.getParent();
|
var view = self.getParent();
|
||||||
var ids = self.env.activeIds;
|
var ids = self.env.activeIds;
|
||||||
if (!_.isEmpty(ids)) {
|
if (!_.isEmpty(ids)) {
|
||||||
@ -41,7 +41,7 @@ odoo.define('document_url', function (require) {
|
|||||||
if (env.domain) {
|
if (env.domain) {
|
||||||
activeIdsContext.active_domain = env.domain;
|
activeIdsContext.active_domain = env.domain;
|
||||||
}
|
}
|
||||||
var context = new Context(env.context, activeIdsContext)
|
var context = new Context(env.context, activeIdsContext);
|
||||||
context = pyeval.eval('context', context);
|
context = pyeval.eval('context', context);
|
||||||
self._rpc({
|
self._rpc({
|
||||||
route: "/web/action/load",
|
route: "/web/action/load",
|
||||||
|
Loading…
Reference in New Issue
Block a user