mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-28 11:26:31 -06:00
[MIG] document_url: Migration to 14.0
This commit is contained in:
parent
fbb92dc902
commit
c8174b8045
@ -8,7 +8,10 @@
|
|||||||
"website": "https://github.com/OCA/knowledge",
|
"website": "https://github.com/OCA/knowledge",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"depends": ["mail"],
|
"depends": ["mail"],
|
||||||
"data": ["view/document_url_view.xml"],
|
"data": [
|
||||||
|
"view/document_url_view.xml",
|
||||||
|
"security/ir.model.access.csv",
|
||||||
|
],
|
||||||
"qweb": ["static/src/xml/url.xml"],
|
"qweb": ["static/src/xml/url.xml"],
|
||||||
"installable": True,
|
"installable": True,
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
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,base.group_user,1,1,1,1
|
access_ir_attachment_add_url,access.ir.attachment.add.url,model_ir_attachment_add_url,base.group_user,1,1,1,1
|
||||||
|
|
@ -12,7 +12,7 @@ odoo.define("document_url", function (require) {
|
|||||||
|
|
||||||
AttachmentBox.include({
|
AttachmentBox.include({
|
||||||
events: _.extend(AttachmentBox.prototype.events, {
|
events: _.extend(AttachmentBox.prototype.events, {
|
||||||
"click span.o_add_url_button": "_onAddUrl",
|
"click button.o_add_url_button": "_onAddUrl",
|
||||||
}),
|
}),
|
||||||
_onAddUrl: function () {
|
_onAddUrl: function () {
|
||||||
// Opens wizard to add an URL attachment to the current record
|
// Opens wizard to add an URL attachment to the current record
|
||||||
|
@ -4,8 +4,12 @@
|
|||||||
<templates id="template" xml:space="preserve">
|
<templates id="template" xml:space="preserve">
|
||||||
<t t-extend="mail.AttachmentBox">
|
<t t-extend="mail.AttachmentBox">
|
||||||
<t t-jquery="button.o_AttachmentBox_buttonAdd" t-operation="after">
|
<t t-jquery="button.o_AttachmentBox_buttonAdd" t-operation="after">
|
||||||
<button class="o_add_url_button btn btn-link" type="button" t-on-click="_onClickAdd">
|
<button
|
||||||
<i class="fa fa-plus-square"/>
|
type="button"
|
||||||
|
class="o_add_url_button btn btn-link"
|
||||||
|
t-on-click="_onClickAdd"
|
||||||
|
>
|
||||||
|
<i class="fa fa-plus-square" />
|
||||||
Add URL
|
Add URL
|
||||||
</button>
|
</button>
|
||||||
</t>
|
</t>
|
||||||
|
Loading…
Reference in New Issue
Block a user