Files
gsinghpal 14fe9ab716 feat: hide authorizer for rental orders, auto-set sale type
Rental orders no longer show the "Authorizer Required?" question or
the Authorizer field. The sale type is automatically set to 'Rentals'
when creating or confirming a rental order. Validation logic also
skips authorizer checks for rental sale type.

Made-with: Cursor
2026-02-25 23:33:23 -05:00

35 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--
Override the core rental product action to add a hard domain filter.
The core action relies on search_default_filter_to_rent which can be
removed by the user. Adding a domain ensures only rental products
are ever shown when accessed from the Rental app.
-->
<record id="sale_renting.rental_product_template_action" model="ir.actions.act_window">
<field name="domain">[('rent_ok', '=', True)]</field>
</record>
<!-- Top-level menu under Rental app -->
<menuitem id="menu_rental_enhancement_root"
name="Fusion Rental"
parent="sale_renting.rental_menu_root"
sequence="30"/>
<!-- Renewal History submenu -->
<menuitem id="menu_rental_renewal_log"
name="Renewal History"
parent="menu_rental_enhancement_root"
action="action_rental_renewal_log"
sequence="10"/>
<!-- Cancellation Requests submenu -->
<menuitem id="menu_rental_cancellation_request"
name="Cancellation Requests"
parent="menu_rental_enhancement_root"
action="action_rental_cancellation_request"
sequence="20"/>
</odoo>