mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-13 15:34:49 -06:00
[FIX] pylint/javascript-lint
This commit is contained in:
parent
1a83e92a89
commit
e36e20e554
@ -1,2 +1,2 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_ir_attachment_add_url,access_ir_attachment_add_url,model_ir_attachment_add_url,,1,1,1,1
|
||||
access_ir_attachment_add_url,access_ir_attachment_add_url,model_ir_attachment_add_url,,1,1,1,1
|
||||
|
|
@ -21,7 +21,7 @@ odoo.define('document_url', function (require) {
|
||||
self.$el.find("a[href]").attr('target', '_blank');
|
||||
self.$el
|
||||
.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.on_url_doc();
|
||||
});
|
||||
@ -29,7 +29,7 @@ odoo.define('document_url', function (require) {
|
||||
on_url_doc: function (event) {
|
||||
|
||||
var self = this;
|
||||
var env = self.env
|
||||
var env = self.env;
|
||||
var view = self.getParent();
|
||||
var ids = self.env.activeIds;
|
||||
if (!_.isEmpty(ids)) {
|
||||
@ -41,7 +41,7 @@ odoo.define('document_url', function (require) {
|
||||
if (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);
|
||||
self._rpc({
|
||||
route: "/web/action/load",
|
||||
|
Loading…
Reference in New Issue
Block a user