|
|
@ -230,6 +230,12 @@ |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<form string="MIS Report Instance" version="7.0"> |
|
|
|
<sheet> |
|
|
|
<div class="oe_right oe_button_box" name="buttons"> |
|
|
|
<button type="object" name="preview" string="Preview" icon="gtk-print-preview" /> |
|
|
|
<button type="object" name="print_pdf" string="Print" icon="gtk-print" /> |
|
|
|
<button type="object" name="export_xls" string="Export" icon="gtk-go-down" /> |
|
|
|
<button type="action" name="%(mis_report_instance_add_to_dashboard_action)d" string="Add to dashboard" icon="gtk-add" /> |
|
|
|
</div> |
|
|
|
<div class="oe_title"> |
|
|
|
<div class="oe_edit_only"> |
|
|
|
<label for="name"/> |
|
|
@ -237,48 +243,47 @@ |
|
|
|
<h1> |
|
|
|
<field name="name" placeholder="Name"/> |
|
|
|
</h1> |
|
|
|
</div> |
|
|
|
<div class="oe_right oe_button_box" name="buttons"> |
|
|
|
<button type="object" name="preview" string="Preview" icon="gtk-print-preview" /> |
|
|
|
<button type="object" name="print_pdf" string="Print" icon="gtk-print" /> |
|
|
|
<button type="object" name="export_xls" string="Export" icon="gtk-go-down" /> |
|
|
|
<button type="action" name="%(mis_report_instance_add_to_dashboard_action)d" string="Add to dashboard" icon="gtk-add" /> |
|
|
|
</div> |
|
|
|
<group col="4"> |
|
|
|
<field name="report_id" colspan="4"/> |
|
|
|
<field name="description"/> |
|
|
|
<field name="landscape_pdf" /> |
|
|
|
<field name="company_id" groups="base.group_multi_company"/> |
|
|
|
<field name="target_move"/> |
|
|
|
</group> |
|
|
|
<group col="4" string="Periods"> |
|
|
|
<group colspan="2"> |
|
|
|
<field name="date"/> |
|
|
|
</div> |
|
|
|
<group> |
|
|
|
<group> |
|
|
|
<field name="report_id"/> |
|
|
|
<field name="target_move" widget="radio"/> |
|
|
|
<field name="landscape_pdf"/> |
|
|
|
<field name="comparison_mode"/> |
|
|
|
<field name="company_id" groups="base.group_multi_company"/> |
|
|
|
</group> |
|
|
|
<newline/> |
|
|
|
<group colspan="4"> |
|
|
|
<field name="period_ids" colspan="4" nolabel="1"> |
|
|
|
<tree string="KPI's" editable="bottom" colors="red:valid==False"> |
|
|
|
<field name="sequence" widget="handle"/> |
|
|
|
<field name="name"/> |
|
|
|
<field name="type"/> |
|
|
|
<field name="date_range_type_id" attrs="{'invisible': [('type', '!=', 'date_range')], 'required': [('type', '=', 'date_range')]}"/> |
|
|
|
<field name="offset"/> |
|
|
|
<field name="duration"/> |
|
|
|
<field name="normalize_factor"/> |
|
|
|
<field name="date_from"/> |
|
|
|
<field name="date_to"/> |
|
|
|
<field name="valid" invisible="1"/> |
|
|
|
<field name="report_instance_id" invisible="1"/> |
|
|
|
<field name="id" invisible="1"/> |
|
|
|
<field name="subkpi_ids" |
|
|
|
domain="[('report_id', '=', parent.report_id)]" |
|
|
|
widget="many2many_tags"/> |
|
|
|
<field name="comparison_column_ids" domain="[('report_instance_id', '=', report_instance_id), ('id', '!=', id)]" widget="many2many_tags"/> |
|
|
|
</tree> |
|
|
|
</field> |
|
|
|
<group> |
|
|
|
<group name="simple_mode" |
|
|
|
attrs="{'invisible': [('comparison_mode', '=', True)]}" colspan="4"> |
|
|
|
<field name="date_range_id"/> |
|
|
|
<field name="date_from" attrs="{'required': [('comparison_mode', '=', False)]}"/> |
|
|
|
<field name="date_to" attrs="{'required': [('comparison_mode', '=', False)]}"/> |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
<group name="comparison_mode" string="Comparison" |
|
|
|
attrs="{'invisible': [('comparison_mode', '=', False)]}" colspan="4"> |
|
|
|
<field name="period_ids" colspan="4" nolabel="1" attrs="{'required': [('comparison_mode', '=', True)]}"> |
|
|
|
<tree string="KPI's" colors="red:valid==False"> |
|
|
|
<field name="sequence" widget="handle"/> |
|
|
|
<field name="name"/> |
|
|
|
<field name="type"/> |
|
|
|
<field name="date_range_type_id" |
|
|
|
attrs="{'invisible': [('type', '!=', 'date_range')], 'required': [('type', '=', 'date_range')]}"/> |
|
|
|
<field name="date_from"/> |
|
|
|
<field name="date_to"/> |
|
|
|
<field name="valid" invisible="1"/> |
|
|
|
<field name="report_instance_id" invisible="1"/> |
|
|
|
<field name="id" invisible="1"/> |
|
|
|
<field name="subkpi_ids" |
|
|
|
domain="[('report_id', '=', parent.report_id)]" |
|
|
|
widget="many2many_tags"/> |
|
|
|
<field name="comparison_column_ids" domain="[('report_instance_id', '=', report_instance_id), ('id', '!=', id)]" widget="many2many_tags"/> |
|
|
|
</tree> |
|
|
|
</field> |
|
|
|
<field name="date"/> |
|
|
|
</group> |
|
|
|
</sheet> |
|
|
|
</form> |
|
|
|
</field> |
|
|
@ -294,5 +299,56 @@ |
|
|
|
|
|
|
|
<menuitem id="mis_report_instance_view_menu" parent="account.menu_finance_reports" name="MIS Reports" action="mis_report_instance_view_action" sequence="101"/> |
|
|
|
|
|
|
|
<record model="ir.ui.view" id="mis_report_instance_period_view_form"> |
|
|
|
<field name="model">mis.report.instance.period</field> |
|
|
|
<field name="priority" eval="16"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<form string="KPI's"> |
|
|
|
<sheet> |
|
|
|
<div class="oe_title"> |
|
|
|
<div class="oe_edit_only"> |
|
|
|
<label for="name"/> |
|
|
|
</div> |
|
|
|
<h1> |
|
|
|
<field name="name" placeholder="Name"/> |
|
|
|
</h1> |
|
|
|
</div> |
|
|
|
<group> |
|
|
|
<field name="mode" widget="radio"/> |
|
|
|
<group name="relative" attrs="{'invisible': [('mode', '!=', 'relative')]}" colspan="4"> |
|
|
|
<group> |
|
|
|
<field name="type"/> |
|
|
|
<field name="date_range_type_id" |
|
|
|
attrs="{'invisible': [('type', '!=', 'date_range')], 'required': [('type', '=', 'date_range')]}"/> |
|
|
|
<field name="offset"/> |
|
|
|
<field name="duration"/> |
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<field name="date_from"/> |
|
|
|
<field name="date_to"/> |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
<group name="fix" attrs="{'invisible': [('mode', '!=', 'fix')]}" colspan="4"> |
|
|
|
<field name="date_range_id"/> |
|
|
|
<field name="manual_date_from" |
|
|
|
attrs="{'required': [('mode', '=', 'fix')]}"/> |
|
|
|
<field name="manual_date_to" |
|
|
|
attrs="{'required': [('mode', '=', 'fix')]}"/> |
|
|
|
</group> |
|
|
|
<field name="normalize_factor"/> |
|
|
|
<field name="report_instance_id" invisible="1"/> |
|
|
|
<field name="id" invisible="1"/> |
|
|
|
<field name="subkpi_ids" |
|
|
|
domain="[('report_id', '=', parent.report_id)]" |
|
|
|
widget="many2many_tags"/> |
|
|
|
<field name="comparison_column_ids" |
|
|
|
domain="[('report_instance_id', '=', report_instance_id), ('id', '!=', id)]" |
|
|
|
widget="many2many_tags"/> |
|
|
|
</group> |
|
|
|
</sheet> |
|
|
|
</form> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
</data> |
|
|
|
</openerp> |