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

Module: eCommerce

Entity: website

Compute Method: _compute_enabled_delivery

View 17.0
Inputs Method Outputs
  • id
- for website in self:
-             website.enabled_delivery = bool(website.env['delivery.carrier'].sudo().search_count(
-                 [('website_id', 'in', (False, website.id)), ('is_published', '=', True)], limit=1
-             ))
  • enabled_delivery

Back to entity