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

View 19.0 View 20.0
Inputs Method Outputs
- order_lines = self.env['sale.order.line'].search_fetch([('order_id', 'in', self.ids)])
+ 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_in_cart(),
+                 lambda sol: sol.order_id == order and sol._show_line_in_cart()
            )
  • website_order_line

Back to entity