Repository
OCA/website · module folder · Try on Runboat
Module version
1.0.1
Category
Website
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/website
Last tracking update
2026-08-07 07:31:58
Authors
Odoo Community Association (OCA), Onestein
Maintainers
Odoo Community Association (OCA), Onestein
Committers
Simone Orsi, Jairo Llopis, Simone Rubino, Weblate, OCA Transbot, OCA-git-bot, oca-travis
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_frontend assets_frontend ir.ui.view qweb Inherits web.assets_frontend
snippet_options snippet_options ir.ui.view qweb Inherits website.snippets
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (0)

No new fields.

Public methods (1)
  • render_template(self, template, values=None, engine='ir.qweb')
    @api.model
    Replaces the src attribute with a data-src attribute for all img elements without the 'lazyload-disable' css class. We use LAZYLOAD_DEFAULT_SRC to prevent showing a broken image icon when the JS is not loading yet.

Loading…