mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[13.0][MIG] - report_substitute migration
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<template id="assets_backend" name="report assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/report_substitute/static/src/js/action_manager.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
</openerp>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template id="assets_backend" name="report assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/report_substitute/static/src/js/action_manager.js"
|
||||
/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
@@ -1,35 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2019 ACSONE SA/NV
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record model="ir.ui.view" id="ir_actions_report_form_view">
|
||||
<field name="name">ir.actions.report.form (in report_substitute)</field>
|
||||
<field name="model">ir.actions.report</field>
|
||||
<field name="inherit_id" ref="base.act_report_xml_view"/>
|
||||
<field name="inherit_id" ref="base.act_report_xml_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='advanced']" position="after">
|
||||
<page name="report_substitution_rule" string="Substitution Rules">
|
||||
<field name="action_report_substitution_rule_ids">
|
||||
<tree>
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="substitution_action_report_id"/>
|
||||
<field name="domain"/>
|
||||
<field name="sequence" widget="handle" />
|
||||
<field name="substitution_action_report_id" />
|
||||
<field name="domain" />
|
||||
</tree>
|
||||
<form>
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="action_report_id"
|
||||
invisible="1" readonly="1"
|
||||
required="0"/>
|
||||
<field name="model" invisible="1"/>
|
||||
<field name="substitution_action_report_id"
|
||||
domain="[('model', '=', model), ('id', '!=', parent.id)]"/>
|
||||
<field
|
||||
name="action_report_id"
|
||||
invisible="1"
|
||||
readonly="1"
|
||||
required="0"
|
||||
/>
|
||||
<field name="model" invisible="1" />
|
||||
<field
|
||||
name="substitution_action_report_id"
|
||||
domain="[('model', '=', model), ('id', '!=', parent.id)]"
|
||||
/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="domain" widget="domain"
|
||||
options="{'model': 'model'}"/>
|
||||
<field
|
||||
name="domain"
|
||||
widget="domain"
|
||||
options="{'model': 'model'}"
|
||||
/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
@@ -38,6 +44,4 @@
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user