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:
1
fusion_whitelabels/__init__.py
Normal file
1
fusion_whitelabels/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
30
fusion_whitelabels/__manifest__.py
Normal file
30
fusion_whitelabels/__manifest__.py
Normal 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,
|
||||
}
|
||||
3
fusion_whitelabels/static/src/css/whitelabel.css
Normal file
3
fusion_whitelabels/static/src/css/whitelabel.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.o-mail-Thread-jumpPresent {
|
||||
display: none !important;
|
||||
}
|
||||
27
fusion_whitelabels/views/fusion_whitelabels_templates.xml
Normal file
27
fusion_whitelabels/views/fusion_whitelabels_templates.xml
Normal 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="any(u._is_portal() for u in doc.partner_id.user_ids) and doc._get_edi_builders()"]" 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>
|
||||
Reference in New Issue
Block a user