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: sale.order

Compute Method: _compute_website_order_line

Inputs Method Outputs
order_lines = self.env["sale.order.line"].search_fetch([("order_id", "in", self.ids)])
for order in self:
            order.website_order_line = order_lines.filtered(
                lambda sol: sol.order_id == order and sol._show_line_in_cart()
            )

Back to entity