Skip to Content
[FIX] viin_brand_common: offline page without the module, leak guard test

Check the quality with Pylint: test_lint -> test_viin_pylint

Succeed 7m merged
PR
#728
PR Author
David Tran
Committer
David Tran
Commit
6acc782a023b
Branch
18.0
Age
Up-time
Commit message
[FIX] viin_brand_common: leak guard also judges the web frontend bundle

The public-bundle leak guard resolved its non-webclient bundles only
from optional apps (point_of_sale, mail, im_livechat, hr_attendance).
On a database where viin_brand_common was the only app installed, none
of them existed, so the guard verified nothing and failed.

web.assets_frontend is owned by web and exists on every database. It is
the public pages' bundle, where brand assets must not appear either, so
it is added to the guard's bundle list. The two failure messages that
told the operator to install an optional app now state the actual
condition: no bundle could be resolved.

im_livechat includes its embed bundle (im_livechat.assets_embed_core)
into web.assets_frontend for the livechat button of public pages, and
this module deliberately brands the emoji picker of that embed. So with
im_livechat installed the picker in web.assets_frontend is intended: the
guard counts web.assets_frontend as a carrier of the picker then, and
judges it as undeclared only on databases without livechat. When no
bundle is left where the picker would be a leak, the absence check is
skipped with that reason instead of failing.

Test-only change; no manifest or version change.
Odoo 18 Test Suite Using Docker
  • Check the quality with Pylint: test_lint -> test_viin_pylint
    install_module test_lint,test_viin_pylint
    exec_odoo --db_port 5435 --log-level=test --max-cron-threads=0 --load=base,web,viin_brand,to_erponline_utility,test_runbot_support --stop-after-init --test-enable --test-tags=/test_lint,/test_viin_pylint,/test_
    --db_port 5435 --log-level=test --max-cron-threads=0 --load=base,web,viin_brand,to_erponline_utility,test_runbot_support --stop-after-init --test-enable --test-tags=/test_lint,/test_viin_pylint,/test_lint,/test_viin_pylint,-/test_lint:TestPyLint.test_pylint
Build Log
Date Level Message
12/02/2026 03:21:25 PM INFO
Check the quality with Pylint: test_lint -> test_viin_pylint: Command: install_module args: test_lint,test_viin_pylint
12/02/2026 03:21:25 PM INFO
Check the quality with Pylint: test_lint -> test_viin_pylint: Command: exec_odoo args: --db_port 5435 --log-level=test --max-cron-threads=0 --load=base,web,viin_brand,to_erponline_utility,test_runbot_support --stop-after-init --test-enable --test-tags=/test_lint,/test_viin_pylint,/test_lint,/test_viin_pylint,-/test_lint:TestPyLint.test_pylint
12/02/2026 03:21:25 PM INFO
Docker command: cd /data/build; mkdir -p /data/build/.pip-tmp && TMPDIR=/data/build/.pip-tmp python3 -m pip install --user --no-cache-dir --progress-bar off -r Viindoo-tvtmaaddons-18.0/requirements.txt && mkdir -p /data/build/.pip-tmp && TMPDIR=/data/build/.pip-tmp python3 -m pip install --user --no-cache-dir --progress-bar off -r Viindoo-erponline-enterprise-18.0/requirements.txt && python3 Viindoo-odoo-18.0/odoo-bin --addons-path Viindoo-odoo-18.0/odoo/addons,Viindoo-odoo-18.0/addons,Viindoo-tvtmaaddons-18.0,Viindoo-erponline-enterprise-18.0,rb-6acc782-227478 -d rb-6acc782-227478-445756 --data-dir /data/build/datadir -i test_lint,test_viin_pylint --db_port 5435 --log-level=test --max-cron-threads=0 --load=base,web,viin_brand,to_erponline_utility,test_runbot_support --stop-after-init --test-enable --test-tags=/test_lint,/test_viin_pylint,/test_lint,/test_viin_pylint,-/test_lint:TestPyLint.test_pylint ;
12/02/2026 03:21:25 PM INFO
Using Dockerfile tag odoo18python312:DockerImage
12/02/2026 03:21:25 PM INFO
Container rb-6acc782-227478-445756 started !
12/02/2026 03:28:28 PM INFO
Container rb-6acc782-227478-445756 stopped !
12/02/2026 03:28:30 PM INFO
Cleaning all resource
12/02/2026 03:28:30 PM INFO
Cleanup finished