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

Module: On site Payment & Picking

Entity: website

Compute Method: _compute_picking_sites

Inputs Method Outputs
  • id
delivery_carriers = self.env['delivery.carrier'].search([('delivery_type', '=', 'onsite')])
for website in self:
            website.picking_site_ids = delivery_carriers.filtered_domain([('website_id', '=', website.id)])

Back to entity