I have added the following variable on the product website to show the available stock for that product: <h1 t-field="product.virtual_available"></h1>
It is working fine while I'm logged as administrator. However it is not showing anymore when I logged as a customer (restricted profile).
Does someone have any idea how can I fix this?
Thank you in advance.
It's a security issue ! Public User (Default user for website) don't have the right to read this field !
So if you want really show it, you can change rights, or simply browse with more rights the record in QWEB view...
Eg. replacing :
Hello Jose Andres,
I am relatively new to Odoo, could you help me in getting this working for my Odoo website/shop?
I assume I need to have the Website Shop ready, I need some consumable products, and I guess that I also need the Warehouse module, correct?
Then how do I make the shop listed products to show the available stock within their description?.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/5/15, 1:01 PM|
|Seen: 1317 times|
|Last updated: 8/24/15, 4:46 AM|