Customization of report templates with a field to download/upload

This commit is contained in:
Houzefa Abbasbhay
2013-10-28 17:20:01 +01:00
parent b23860efa6
commit e9c4d7c40b
5 changed files with 86 additions and 10 deletions

26
ir_report.xml Normal file
View File

@@ -0,0 +1,26 @@
<openerp>
<data>
<!-- Inherit from base.act_report_xml_view to add py3o-related settings. -->
<record id="py3o_report_view" model="ir.ui.view">
<field name="name">py3o_report_view</field>
<field name="model">ir.actions.report.xml</field>
<field name="inherit_id" ref="base.act_report_xml_view" />
<field name="arch" type="xml">
<xpath expr="//page[@string='Security']" position="before">
<page string="LibreOffice template"
attrs="{'invisible': [('report_type', '!=', 'py3o')]}">
<field name="py3o_filename" invisible="1" />
<field name="py3o_template" filename="py3o_filename" />
<field name="py3o_template_data" filename="py3o_filename" />
</page>
</xpath>
</field>
</record>
</data>
</openerp>