Public release from ruodoo-project: 19.0 - 2026-05-31 21:19:12 UTC

This commit is contained in:
CI Publish Bot
2026-05-31 21:19:21 +00:00
commit aa4214c195
1213 changed files with 183945 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import test_portal_debranding

View File

@ -0,0 +1,28 @@
"""Portal debranding tests.
Validates that this module removes Odoo branding from portal pages.
"""
# Copyright 2024 level4 (https://level4.es)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests import common
class TestPortalOdooDebranding(common.TransactionCase):
def test_brand_promotion_hidden(self):
"""web.brand_promotion should render nothing after debranding.
The view sets t-if="False" on the .o_brand_promotion container,
so the whole block must be skipped at render time.
"""
html = self.env["ir.ui.view"]._render_template("web.brand_promotion", values={})
self.assertEqual(html.strip(), "", "Brand promotion block should be removed")
def test_portal_record_sidebar_no_powered_by(self):
"""The 'Powered by Odoo' notice in portal sidebar must be removed."""
html = self.env["ir.ui.view"]._render_template(
"portal.portal_record_sidebar", values={"classes": ""}
)
self.assertNotIn("Powered by", html)
self.assertNotIn("odoo.com?utm_medium=portal", html)