CRITICAL FIX: The template was referencing price_info in lines 1170 and 1184
but this variable was never defined. This caused 'NoneType' object is not
callable error.
Added missing t-set to define price_info from product_price_info:
<t t-set="price_info" t-value="product_price_info.get(product.id, {})"/>
This ensures price_info has proper dict fallback if product not in price data.
Files Modified:
- website_sale_aplicoop/views/website_templates.xml
• Added price_info definition before its usage
• Now price_info = product_price_info[product.id] safely with fallback
|
||
|---|---|---|
| .. | ||
| group_order_views.xml | ||
| load_from_history_templates.xml | ||
| portal_templates.xml | ||
| product_template_views.xml | ||
| res_config_settings_views.xml | ||
| res_partner_views.xml | ||
| sale_order_views.xml | ||
| stock_picking_views.xml | ||
| website_templates.xml | ||