<odoo>
<template id="products_item_inherit" name="Products item" inherit_id="website_sale.products_item" >
<xpath expr="//div[@class='product_price']" position="before">
<div>
<t t-call="rating.rating_card" />
</div>
</xpath>
</template>
</odoo>
I have error while i inherited rating.rating_card template
I have an error like this
QWebException: 'NoneType' object has no attribute 'get'Traceback (most recent call last):
File "/home/emipro/Hemangi/odoo-10.0/odoo/addons/base/ir/ir_qweb/qweb.py", line 315, in _compiled_fn return compiled(self, append, values, options, log) File "<template>", line 1, in template_rating_rating_card_122 File "<template>", line 7, in body_call_content_115AttributeError: 'NoneType' object has no attribute 'get'
Error to render compiling ASTAttributeError: 'NoneType' object has no attribute 'get'Template: rating.rating_cardPath: /templates/t/div/div/div[1]/t/t[1]
Node: <t t-set="rating_default_value" t-value="'%.2f' % (rating_stat.get('avg', 0.0),)"/>
I want to show average rating of products in all product display list