You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
156 lines
7.6 KiB
156 lines
7.6 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="mis_report_view_tree">
|
|
<field name="name">mis.report.view.tree</field>
|
|
<field name="model">mis.report</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="MIS Reports">
|
|
<field name="name"/>
|
|
<field name="description"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="mis_report_view_form">
|
|
<field name="name">mis.report.view.form</field>
|
|
<field name="model">mis.report</field>
|
|
<field name="arch" type="xml">
|
|
<form string="MIS Report" version="7.0">
|
|
<sheet>
|
|
<group col="2">
|
|
<field name="name"/>
|
|
<field name="description"/>
|
|
<field name="query_ids">
|
|
<tree string="Queries" editable="bottom">
|
|
<field name="name"/>
|
|
<field name="model_id"/>
|
|
<field name="field_ids" domain="[('model_id', '=', model_id)]" widget="many2many_tags"/>
|
|
<field name="field_name"/>
|
|
<field name="date_field" domain="[('model_id', '=', model_id), ('ttype', 'in', ('date', 'datetime'))]"/>
|
|
<field name="domain"/>
|
|
</tree>
|
|
</field>
|
|
<field name="kpi_ids">
|
|
<tree string="KPI's" editable="bottom">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="description" on_change="onchange_description(description, name, context)"/>
|
|
<field name="name" on_change="onchange_name(name, context)"/>
|
|
<field name="expression"/>
|
|
<field name="type" on_change="onchange_type(type, context)"/>
|
|
<field name="dp" attrs="{'invisible': [('type', '=', 'str')]}"/>
|
|
<field name="divider" attrs="{'invisible': [('type', '=', 'str')]}"/>
|
|
<field name="suffix"/>
|
|
<field name="compare_method" attrs="{'invisible': [('type', '=', 'str')]}"/>
|
|
<field name="css_style"/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="mis_report_view_action">
|
|
<field name="name">Mis report</field>
|
|
<field name="view_id" ref="mis_report_view_tree"/>
|
|
<field name="res_model">mis.report</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
<menuitem id="mis_report_view_menu" parent="base.menu_reporting_config" name="MIS Reports" action="mis_report_view_action"/>
|
|
|
|
<record model="ir.ui.view" id="mis_report_instance_result_view_form">
|
|
<field name="name">mis.report.instance.result.view.form</field>
|
|
<field name="model">mis.report.instance</field>
|
|
<field name="priority" eval="17"/>
|
|
<field name="arch" type="xml">
|
|
<form string="MIS Report Result" version="7.0">
|
|
<widget type="mis_report"></widget>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="mis_report_instance_result_action">
|
|
<field name="name">Preview</field>
|
|
<field name="view_id" ref="mis_report_instance_result_view_form"/>
|
|
<field name="res_model">mis.report.instance</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="mis_report_instance_view_tree">
|
|
<field name="name">mis.report.instance.view.tree</field>
|
|
<field name="model">mis.report.instance</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="MIS Report Instances">
|
|
<field name="report_id"/>
|
|
<field name="name"/>
|
|
<field name="description"/>
|
|
<field name="target_move"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="mis_report_instance_view_form">
|
|
<field name="name">mis.report.instance.view.form</field>
|
|
<field name="model">mis.report.instance</field>
|
|
<field name="priority" eval="16"/>
|
|
<field name="arch" type="xml">
|
|
<form string="MIS Report Instance" version="7.0">
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<div class="oe_edit_only">
|
|
<label for="name"/>
|
|
</div>
|
|
<h1>
|
|
<field name="name" placeholder="Name"/>
|
|
</h1>
|
|
</div>
|
|
<div class="oe_right oe_button_box" name="buttons">
|
|
<button type="action" name="%(mis_report_instance_result_action)d" string="Preview" />
|
|
<button type="action" name="%(mis_report_instance_add_to_dashboard_action)d" string="Add to dashboard" />
|
|
</div>
|
|
<group col="2">
|
|
<field name="description"/>
|
|
<field name="report_id"/>
|
|
<field name="target_move"/>
|
|
<field name="date"/>
|
|
<field name="period_ids">
|
|
<tree string="KPI's" editable="bottom">
|
|
<field name="sequence" widget="handle"/>
|
|
<field name="name"/>
|
|
<field name="type"/>
|
|
<field name="offset"/>
|
|
<field name="duration"/>
|
|
<field name="date_from"/>
|
|
<field name="date_to"/>
|
|
<field name="period_from"/>
|
|
<field name="period_to"/>
|
|
<field name="report_instance_id" invisible="1"/>
|
|
<field name="id" invisible="1"/>
|
|
<field name="comparison_column_ids" domain="[('report_instance_id', '=', report_instance_id), ('id', '!=', id)]" widget="many2many_tags"/>
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="mis_report_instance_view_action">
|
|
<field name="name">Mis report instance</field>
|
|
<field name="view_id" ref="mis_report_instance_view_tree"/>
|
|
<field name="res_model">mis.report.instance</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
<menuitem id="mis_report_instance_view_menu" parent="base.menu_reporting_config" name="MIS Report Instances" action="mis_report_instance_view_action"/>
|
|
|
|
</data>
|
|
</openerp>
|