addons-cm/website_sale_aplicoop/controllers
snt 5721687488 [FIX] website_sale_aplicoop: Move template logic to controller for QWeb compatibility
This fixes the persistent 'TypeError: NoneType object is not callable' error
by moving all complex conditional logic out of the template and into the
Python controller.

QWeb has strict parsing limitations - it fails on:
- Complex nested conditionals in t-set
- Chained 'or' operators in t-attf-* attributes
- Deep object attribute chains (uom_id.category_id.name)

Solution: Pre-process all display values in controller via _prepare_product_display_info()
which creates product_display_info dict with safe values ready for template.

Template now uses simple dict.get() calls without any conditional logic.
2026-02-16 23:28:36 +01:00
..
__init__.py Aplicoop desde el repo de kidekoop 2026-02-11 15:32:11 +01:00
portal.py Aplicoop desde el repo de kidekoop 2026-02-11 15:32:11 +01:00
website_sale.py [FIX] website_sale_aplicoop: Move template logic to controller for QWeb compatibility 2026-02-16 23:28:36 +01:00