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.
95 lines
4.3 KiB
95 lines
4.3 KiB
<odoo>
|
|
<data>
|
|
<record id="action_select_reports_wizard_form" model="ir.ui.view">
|
|
<field name="name">SelectExcelReport</field>
|
|
<field name="model">excel.report.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<h2>Do you want to print the report??</h2>
|
|
<footer>
|
|
<button name="print_excel_report" string="Print" type="object" class="oe_highlight"/>
|
|
<button string="Cancel" special="cancel" class="oe_link"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="action_select_reports_form" model="ir.ui.view">
|
|
<field name="name">SelectReport</field>
|
|
<field name="model">report.excel</field>
|
|
<field name="priority">20</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<header>
|
|
<button name="print_report" type="object"
|
|
string="Print Excel Report" class="oe_highlight"/>
|
|
</header>
|
|
<field name="binding_model_id" invisible="1"/>
|
|
<field name="action_button" invisible="1"/>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button name="create_model_action" type="object" string="Add Action"
|
|
attrs="{'invisible':[('action_button','!=',False)]}" icon="fa-plus-square"
|
|
class="oe_stat_button"/>
|
|
<button name="unlink_model_action" type="object" string="Remove"
|
|
attrs="{'invisible':[('action_button','=',False)]}" icon="fa-minus-square"
|
|
class="oe_stat_button"/>
|
|
</div>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<group>
|
|
<field name="name"/>
|
|
</group>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<field name="model_id"/>
|
|
<field name="state"/>
|
|
</group>
|
|
|
|
<span>The column order will be as selected in the below table</span>
|
|
|
|
<notebook>
|
|
<page string="Fields To View">
|
|
<group>
|
|
<field name="fields_ids">
|
|
<tree editable="bottom">
|
|
<field name="name"/>
|
|
<field name="field_description"/>
|
|
<field name="ttype"/>
|
|
</tree>
|
|
</field>
|
|
<field name="date_field"/>
|
|
<field name="field_order" invisible="1"/>
|
|
</group>
|
|
<group attrs="{'invisible': [('date_field', '=', False)]}">
|
|
<field name="start_date" class="oe_inline"
|
|
attrs="{'invisible': [('date_field', '=', False)]}"/>
|
|
<field name="end_date" class="oe_inline"
|
|
attrs="{'invisible': [('date_field', '=', False)]}"/>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="action_select_excel_report" model="ir.actions.act_window">
|
|
<field name="name">Select Report</field>
|
|
<field name="res_model">report.excel</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
|
|
<menuitem id="menu_select_report"
|
|
name="Excel Report Designer"
|
|
action="action_select_excel_report"
|
|
parent="base.menu_administration"
|
|
sequence="50"
|
|
/>
|
|
|
|
</data>
|
|
</odoo>
|