Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Website

Entity: website

Compute Method: _compute_blocked_third_party_domains

View 19.0
Inputs Method Outputs
- for website in self:
-             custom_list = website.sudo().custom_blocked_third_party_domains
- 
-             full_list = DEFAULT_BLOCKED_THIRD_PARTY_DOMAINS
-             if custom_list:
-                 # Note: each line of the custom list is already ensured to not
-                 # have leading or trailing whitespaces.
-                 lines = custom_list.splitlines()
-                 custom_domains = '\n'.join([line for line in lines if line[0] != '#'])
-                 if lines[0].startswith("#ignore_default"):
-                     full_list = custom_domains
-                 else:
-                     full_list += f"\n{custom_domains}"
- 
-             website.blocked_third_party_domains = full_list
  • blocked_third_party_domains

Back to entity