Three bugs prevented home_delivery from reaching sale.order: 1. #home-delivery-btn (shop sidebar) had no JS handler — clicking it did nothing. Now it toggles active state and persists choice to sessionStorage. 2. _executeSaveCartAsDraft (Save Cart button) never included is_delivery in the request body. Now reads the toggle button state (or the page-level data-home-delivery-enabled fallback) and sends is_delivery correctly. 3. #home-delivery-checkbox on checkout page was unchecked by default and always shown. Now it is pre-checked when group_order.home_delivery is True, wrapped in t-if to hide it when delivery is not configured, and synced bidirectionally with sessionStorage so the shop-page toggle state carries over to checkout. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| group_order_views.xml | ||
| load_from_history_templates.xml | ||
| portal_templates.xml | ||
| product_category_views.xml | ||
| product_template_views.xml | ||
| res_config_settings_views.xml | ||
| res_partner_views.xml | ||
| sale_order_views.xml | ||
| stock_picking_views.xml | ||
| website_sale_disable_cart.xml | ||
| website_templates.xml | ||