mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[MIG][13.0] report_xml: Migration to 13.0
This commit is contained in:
32
report_xml/views/ir_actions_report_view.xml
Normal file
32
report_xml/views/ir_actions_report_view.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="ir_actions_report_view_form_report_xml" model="ir.ui.view">
|
||||
<field name="name">ir.actions.report.view.form.report.xml</field>
|
||||
<field name="model">ir.actions.report</field>
|
||||
<field name="inherit_id" ref="base.act_report_xml_view" />
|
||||
<field name="arch" type="xml">
|
||||
<button name="associated_view" position="attributes">
|
||||
<attribute name="attrs">{
|
||||
'invisible': [
|
||||
('report_type', 'not in', ('qweb-pdf', 'qweb-html', 'qweb-text', 'qweb-xml')),
|
||||
],
|
||||
}</attribute>
|
||||
</button>
|
||||
<xpath expr="//page[@name='advanced']/group" position="after">
|
||||
<group
|
||||
name="xml_reports"
|
||||
string="XML Rreport Settings"
|
||||
attrs="{
|
||||
'invisible': [
|
||||
('report_type', '!=', 'qweb-xml')
|
||||
],
|
||||
}"
|
||||
>
|
||||
<field name="xsd_schema" />
|
||||
<field name="xml_encoding" />
|
||||
<field name="xml_declaration" />
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="act_report_xml_view" model="ir.ui.view">
|
||||
<field name="name">ir.actions.report.report.xml</field>
|
||||
<field name="model">ir.actions.report</field>
|
||||
<field name="inherit_id" ref="base.act_report_xml_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<button name="associated_view" position="attributes">
|
||||
<attribute name="attrs">{'invisible':[('report_type', 'not in', ['qweb-pdf', 'qweb-html', 'qweb-text', 'qweb-xml'])]}</attribute>
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -2,7 +2,10 @@
|
||||
<odoo>
|
||||
<template id="report_xml.assets_backend" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/report_xml/static/src/js/report/action_manager_report.js"/>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/report_xml/static/src/js/report/action_manager_report.js"
|
||||
/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user