document_url to v 13.0

This commit is contained in:
Fernando La Chica 2020-10-23 10:13:04 +02:00
parent 7cdb818e4b
commit 3f1c8c92de
7 changed files with 17 additions and 8 deletions

View File

@ -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,
} }

View File

@ -3,3 +3,7 @@
* Pedro M. Baeza * Pedro M. Baeza
* Ernesto Tejeda * Ernesto Tejeda
* `Guadaltech <https://www.guadaltech.es>`_:
* Fernando La Chica

View File

@ -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,

View File

@ -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">

View File

@ -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"

View File

@ -0,0 +1 @@
../../../../document_url

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)