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
This commit is contained in:
gsinghpal
2026-02-25 23:33:23 -05:00
parent 3c8f83b8e6
commit 14fe9ab716
51 changed files with 4192 additions and 822 deletions

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
{
"name": "Fusion Whitelabels",
"version": "19.0.1.3.0",
"category": "Website",
"summary": "Remove Odoo frontend promotional branding for portal and website pages.",
"description": """
Fusion Whitelabels
==================
Persistent Odoo 19 whitelabel customizations:
- Removes "Connect with your software" portal promotions.
- Removes global "Powered by Odoo" website/footer promotions.
- Removes login-page "Powered by Odoo" footer link.
""",
"author": "Fusion",
"license": "LGPL-3",
"depends": ["portal", "sale", "purchase", "website", "website_sale"],
"data": [
"views/fusion_whitelabels_templates.xml",
],
"assets": {
"web.assets_frontend": [
"fusion_whitelabels/static/src/css/whitelabel.css",
],
},
"installable": True,
"auto_install": False,
"application": False,
}

View File

@@ -0,0 +1,3 @@
.o-mail-Thread-jumpPresent {
display: none !important;
}

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="fusion_whitelabels_sale_portal" inherit_id="sale.sale_order_portal_template" priority="999">
<xpath expr="//div[@t-if='sale_order._get_edi_builders()']" position="replace"/>
<xpath expr="//div[@id='sale_portal_connect_software_modal']" position="replace"/>
</template>
<template id="fusion_whitelabels_sale_report" inherit_id="sale.report_saleorder_document" priority="999">
<xpath expr="//div[@t-if=&quot;any(u._is_portal() for u in doc.partner_id.user_ids) and doc._get_edi_builders()&quot;]" position="replace"/>
</template>
<template id="fusion_whitelabels_purchase_portal" inherit_id="purchase.portal_my_purchase_order" priority="999">
<xpath expr="//div[@t-if='order._get_edi_builders()']" position="replace"/>
<xpath expr="//div[@id='portal_connect_software_modal']" position="replace"/>
</template>
<template id="fusion_whitelabels_portal_sidebar" inherit_id="portal.portal_record_sidebar" priority="999">
<xpath expr="//div[hasclass('d-none','d-lg-block','mt-5','small','text-center','text-muted')]" position="replace"/>
</template>
<template id="fusion_whitelabels_hide_brand_promotion" inherit_id="web.brand_promotion" priority="999">
<xpath expr="//div[hasclass('o_brand_promotion')]" position="attributes">
<attribute name="style">display:none !important;</attribute>
</xpath>
</template>
</odoo>