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.
 
 
 
 
 

46 lines
2.0 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--Action of cancellation request-->
<record id="cancellation_request_action" model="ir.actions.act_window">
<field name="name">Cancellation Request</field>
<field name="res_model">cancellation.request</field>
<field name="view_mode">tree,form</field>
</record>
<!-- Form view of the cancellation request-->
<record id="cancellation_request_view_form" model="ir.ui.view">
<field name="name">cancellation.request.view.form</field>
<field name="model">cancellation.request</field>
<field name="arch" type="xml">
<form string="Channel">
<header>
<field name="state" widget="statusbar"/>
<button name="action_request" class="oe_highlight"
states="draft" string="Request"
type="object"/>
<button name="action_approve" class="oe_highlight"
states="to_approve" string="Approve"
type="object"
groups="vehicle_subscription.vehicle_subscription_group_manager"/>
</header>
<sheet>
<group>
<field name="customer_id"/>
<field name="vehicle_id"/>
<field name="date"/>
<field name="reason"/>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<!--Menu item of cancellation-->
<menuitem id="cancellation_request_menu_action"
name="Cancellation Request"
parent="fleet.fleet_configuration"
action="cancellation_request_action"
sequence="7"/>
</odoo>