From fbcc1dfaa24ca046bb46adb5c31973fa08a44588 Mon Sep 17 00:00:00 2001
From: snt
Date: Mon, 16 Feb 2026 23:33:07 +0100
Subject: [PATCH] [FIX] website_sale_aplicoop: Define price_info variable in
template
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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:
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
---
website_sale_aplicoop/views/website_templates.xml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/website_sale_aplicoop/views/website_templates.xml b/website_sale_aplicoop/views/website_templates.xml
index 4635ab5..f2b0dac 100644
--- a/website_sale_aplicoop/views/website_templates.xml
+++ b/website_sale_aplicoop/views/website_templates.xml
@@ -1161,6 +1161,10 @@
+