[FIX] website_sale_aplicoop: Define price_info variable in template

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
This commit is contained in:
snt 2026-02-16 23:33:07 +01:00
parent f2a8596d75
commit fbcc1dfaa2

View file

@ -1161,6 +1161,10 @@
</small>
</p>
</t>
<t
t-set="price_info"
t-value="product_price_info.get(product.id, {})"
/>
<t
t-set="display_price"
t-value="product_display_info.get(product.id, {}).get('display_price', 0.0)"