This commit is contained in:
gsinghpal
2026-02-25 09:40:41 -05:00
parent 0e1aebe60b
commit e71bc503f9
69 changed files with 7537 additions and 82 deletions

View File

@@ -0,0 +1,34 @@
<?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="Rental Enhancement"
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>