Files
knowledge/document_url/view/document_url_view.xml
Jonathan Nemry (ACSONE) fb63a2310b [MIG] from 8.0 to 9.0 document_url (#89)
[MIG] document_url

* bump version to 9.0.1.0.0 and make it installable
* Update JS structure
* Add css in order to be compliant with odoo style
* Add a README.rst and OCA conventions
* Improve selector
* add fr.po for fr translation
* open link with target='_blank'
2024-05-22 15:39:51 -03:00

41 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="assets_backend" name="google_drive assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/document_url/static/src/css/url.css" type="text/css"/>
<script type="text/javascript" src="/document_url/static/src/js/url.js"></script>
</xpath>
</template>
<record model='ir.actions.act_window' id='action_ir_attachment_add_url'>
<field name='name'>Add URL</field>
<field name='res_model'>ir.attachment.add_url</field>
<field name='type'>ir.actions.act_window</field>
<field name='target'>new</field>
<field name='view_type'>form</field>
<field name='view_mode'>form</field>
</record>
<record model="ir.ui.view" id="view_ir_attachment_add_url_form">
<field name="name">ir.attachment.add_url.form</field>
<field name="model">ir.attachment.add_url</field>
<field name="arch" type="xml">
<form string="Add URL" version="7.0">
<group>
<field name="name"/>
<field name="url" widget="url"/>
</group>
<footer>
<button name="action_add_url" string="Add" class="oe_highlight" type="object" />
or
<button special="cancel" string="Cancel" class="oe_link" />
</footer>
</form>
</field>
</record>
</data>
</openerp>