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.
 
 
 
 
 

41 lines
1.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form view of wizard-->
<record id="route_report_form" model="ir.ui.view">
<field name="name">Route Report</field>
<field name="model">route.report</field>
<field name="arch" type="xml">
<form>
<group>
<field name="route" widget="many2many_tags"
options="{'no_create': True}"/>
</group>
<group>
<field name="payment"/>
</group>
<group>
<field name="consolidated" invisible="payment==False"/>
</group>
<footer>
<button name="print_route_details" string="PDF"
type="object" class="oe_highlight"/>
<button name="print_xlsx_report_route" string="Print Excel"
type="object" class="oe_highlight"/>
<button special="cancel" string="Cancel"/>
</footer>
</form>
</field>
</record>
<!-- Action for the menu item-->
<record id="route_report_action" model="ir.actions.act_window">
<field name="name">Routes</field>
<field name="res_model">route.report</field>
<field name="view_mode">form</field>
<field name="view_id" ref="route_report_form"/>
<field name="target">new</field>
</record>
<!-- Menu item for wizard to print report-->
<menuitem id="report_wizard" name="Report"
parent="customer_route_management.delivery_route_menu_root"
action="route_report_action"/>
</odoo>