mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-27 19:08:42 -06:00
document_url to v 13.0
This commit is contained in:
parent
7cdb818e4b
commit
3f1c8c92de
@ -3,13 +3,12 @@
|
|||||||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||||
{
|
{
|
||||||
"name": "URL attachment",
|
"name": "URL attachment",
|
||||||
"version": "12.0.1.0.0",
|
"version": "13.0.1.0.0",
|
||||||
"category": "Tools",
|
"category": "Tools",
|
||||||
"author": "Tecnativa," "Odoo Community Association (OCA)",
|
"author": "Tecnativa, Guadaltech, Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/knowledge",
|
"website": "https://github.com/OCA/knowledge",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"depends": ["document",],
|
"data": ["view/document_url_view.xml", "security/ir.model.access.csv"],
|
||||||
"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,
|
||||||
}
|
}
|
||||||
|
@ -3,3 +3,7 @@
|
|||||||
|
|
||||||
* Pedro M. Baeza
|
* Pedro M. Baeza
|
||||||
* Ernesto Tejeda
|
* Ernesto Tejeda
|
||||||
|
|
||||||
|
* `Guadaltech <https://www.guadaltech.es>`_:
|
||||||
|
|
||||||
|
* Fernando La Chica
|
||||||
|
@ -19,7 +19,7 @@ odoo.define("document_url", function(require) {
|
|||||||
* @private
|
* @private
|
||||||
* @param {MouseEvent} ev
|
* @param {MouseEvent} ev
|
||||||
*/
|
*/
|
||||||
_onAddUrl: function(ev) {
|
_onAddUrl: function() {
|
||||||
this.do_action("document_url.action_ir_attachment_add_url", {
|
this.do_action("document_url.action_ir_attachment_add_url", {
|
||||||
additional_context: {
|
additional_context: {
|
||||||
active_id: this.currentResID,
|
active_id: this.currentResID,
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
<field name='res_model'>ir.attachment.add_url</field>
|
<field name='res_model'>ir.attachment.add_url</field>
|
||||||
<field name='type'>ir.actions.act_window</field>
|
<field name='type'>ir.actions.act_window</field>
|
||||||
<field name='target'>new</field>
|
<field name='target'>new</field>
|
||||||
<field name='view_type'>form</field>
|
|
||||||
<field name='view_mode'>form</field>
|
<field name='view_mode'>form</field>
|
||||||
</record>
|
</record>
|
||||||
<record model="ir.ui.view" id="view_ir_attachment_add_url_form">
|
<record model="ir.ui.view" id="view_ir_attachment_add_url_form">
|
||||||
|
@ -6,7 +6,7 @@ from urllib import parse
|
|||||||
from odoo import fields, models
|
from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
class AddUrlWizard(models.Model):
|
class AddUrlWizard(models.TransientModel):
|
||||||
_name = "ir.attachment.add_url"
|
_name = "ir.attachment.add_url"
|
||||||
_description = "Wizard to add URL attachment"
|
_description = "Wizard to add URL attachment"
|
||||||
|
|
||||||
|
1
setup/document_url/odoo/addons/document_url
Symbolic link
1
setup/document_url/odoo/addons/document_url
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../../document_url
|
6
setup/document_url/setup.py
Normal file
6
setup/document_url/setup.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user