[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:
parent
f2a8596d75
commit
fbcc1dfaa2
1 changed files with 4 additions and 0 deletions
|
|
@ -1161,6 +1161,10 @@
|
||||||
</small>
|
</small>
|
||||||
</p>
|
</p>
|
||||||
</t>
|
</t>
|
||||||
|
<t
|
||||||
|
t-set="price_info"
|
||||||
|
t-value="product_price_info.get(product.id, {})"
|
||||||
|
/>
|
||||||
<t
|
<t
|
||||||
t-set="display_price"
|
t-set="display_price"
|
||||||
t-value="product_display_info.get(product.id, {}).get('display_price', 0.0)"
|
t-value="product_display_info.get(product.id, {}).get('display_price', 0.0)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue