summaryrefslogtreecommitdiff
path: root/addons/document/document_view.xml
diff options
context:
space:
mode:
authorPurnendu Singh (OpenERP) <psi@tinyerp.com>2012-10-03 15:12:42 +0530
committerPurnendu Singh (OpenERP) <psi@tinyerp.com>2012-10-03 15:12:42 +0530
commit4ef3f9218bb97b66b301f84ed49661d3be79a909 (patch)
tree22cf9262a2787130ee0f1303f3285f6ceab90a99 /addons/document/document_view.xml
parent879cdd8e40c74c4fd583d05c1cae680e76e3be9a (diff)
[IMP] document: add on_change on fname so it will update the download link with the name of attached document
bzr revid: psi@tinyerp.com-20121003094242-5wu6pki5cx442jte
Diffstat (limited to 'addons/document/document_view.xml')
-rw-r--r--addons/document/document_view.xml13
1 files changed, 3 insertions, 10 deletions
diff --git a/addons/document/document_view.xml b/addons/document/document_view.xml
index 8d1ff0850b3..54776c4d36e 100644
--- a/addons/document/document_view.xml
+++ b/addons/document/document_view.xml
@@ -228,9 +228,11 @@
<field name="priority" eval="1"/>
<field name="inherit_id" ref="base.view_attachment_form"/>
<field name="arch" type="xml">
+ <xpath expr="//field[@name='datas_fname']" position="replace">
+ <field name="datas_fname" invisible="1" on_change="onchange_file(datas_fname)"/>
+ </xpath>
<field name="url" position="after">
<field name="user_id"/>
- <field name="datas_fname" select="1"/>
</field>
<field name="company_id" position="before">
<field name="parent_id"/>
@@ -339,15 +341,6 @@
<field name="value" eval="'ir.actions.act_window,%d'%action_document_file_directory_form"/>
</record>
- <record model="ir.ui.view" id="view_attachment_form_inherit">
- <field name="name">ir.attachment.view.inherit</field>
- <field name="model">ir.attachment</field>
- <field name="inherit_id" ref="base.view_attachment_form"/>
- <field name="arch" type="xml">
- <field name="datas_fname" position = "replace" >
- </field>
- </field>
- </record>
<record model="ir.ui.view" id="view_process_node_form_inherit1">
<field name="name">process.node.form</field>