'Override to add delivery-related website data.'

@api.model
def _get_website_data(self, order):

    values = super(SaleOrder, self)._get_website_data(order)
    has_stockable_products = any(order.order_line.filtered((lambda line: (line.product_id.type in ['consu', 'product']))))
    if (not has_stockable_products):
        return values
    delivery_carriers = order._get_delivery_methods()
    values['deliveries'] = delivery_carriers.sudo().with_context(order_id=order.id)
    return values
