mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Customization of report templates with a field to download/upload
This commit is contained in:
26
ir_report.xml
Normal file
26
ir_report.xml
Normal 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>
|
||||
Reference in New Issue
Block a user