- Add fallback values for display_price in t-attf-data-product-price attribute to prevent TypeError when display_price is None - Add fallback for product.uom_id.category_id.name to prevent None errors - Use chained 'or' operators to ensure safe fallback: * display_price or product.list_price or 0 * product.uom_id.category_id.name if exists else empty string This fixes the QWeb rendering error: 'TypeError: NoneType object is not callable' The error occurred when the template tried to render data attributes with None values. Now the template safely handles missing or None values by using sensible defaults. |
||
|---|---|---|
| .. | ||
| 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 | ||