Repository
OCA/website-cms · module folder · Try on Runboat
Module version
1.0.1
Category
Uncategorized
Folder size
0.12 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/website-cms
Last tracking update
2026-08-07 08:09:33
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Simone Orsi, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
cms_form
Description

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
display_test CMS status message display test ir.ui.view qweb New
message_listing_wrapper CMS status_message listing wrapper ir.ui.view qweb New
message_wrapper CMS status_message single message wrapper ir.ui.view qweb New
portal_add_status_message Add status message ir.ui.view qweb Inherits portal.portal_layout
status_message CMS status_message ir.ui.view qweb New
HTTP endpoints (1)
Route(s)HandlerAuthTypeMethodsFlags
/cms/status-message/display-test CMSStatusMsgTest.display_test public http ALL
Models touched (1)

New fields (0)

No new fields.

Public methods (3)
  • add_status_message(self, msg, title='', kind='info', dismissible=True, dismiss_options=None, request=None, session=None)
    @api.model
    Inject status message in session. :param msg: the message you want to display. :param title: a title for your message. By default is taken from `default_status_msg_title` if `kind` matches. If you pass `None` the title is removed from the alert box. :param kind: the type of message (info, success, etc). Is used to provide the proper css klass to the alert box. Note: matching a default type is not required at all. You can use your custom type to have your alert box styled differently. :param dismissible: make the alert dismissible. :param session: odoo http session. By default is taken from the current request.
  • default_status_msg_title(self)
    @property
    Some default msg titles.
  • get_status_message(self, session=None)
    @api.model
    Retrieve status messages from current session. :param session: odoo http session. By default is taken from the current request. :rtype: list.

Loading…

Loading…

Loading…

Loading…

Loading…