Skip to Content
Menu
This question has been flagged

Using Odoo12, I want to show the field delay from product.supplierinfo in my website shop. It should be displayed in every product view. 

So I added following code to my view:

<span t-field="product_supplierinfo.delay></span>

Sadly this doesnt work and gives me following Error:

AttributeError: 'NoneType' object has no attribute '_fields'

If I just a model like product_variant for example it works without any issues.

Avatar
Discard

Seems there is no value inside the product_supplierinfo

Author

I don't quite understand why its not working. What is the right way to call a field from another model in qweb? It acts like the model product_supplierinfo doesn't exist but it does. Do I need to call it in a different way?

Related Posts Replies Views Activity
1
Aug 22
737
0
May 19
3269
0
Oct 24
86
6
Mar 16
6536
2
Apr 23
16954