Help

2

UoM On eCommerce Product Pages

Avatar
Gregory Gillis

Odoo V10 Enterprise self-hosted

We need to put the Unit of Measure of the products page so customers what qty they are buying. We have some that come in various amounts. It is all set up, however we want to display it on the page for customers to see. I've added in this line:

<span t-field="product.uom_id.name" style="white-space: nowrap;"/>

And the UoM appears if you are logged in. If someone is not logged in, when they view the product page, they get "500: Internal Server Error". I've found online it is apparently a permissions issue, but not sure what permission I need to add or change to resolve this issue. Is there another way to show and enable UoM on the product page, or how can I resolve this?

Avatar
Discard
1 Answer
3
Avatar
Gregory Gillis
Best Answer

SOLVED:

By using the same code as above, you can put this anywhere on the page with the other fields. The issue is a permission error. To resolve this problem: Developer Mode-Settings>Technical>Access Rights

Create New: Product UoM and check read. Save, and problem solved.

1 Comment
Avatar
Discard
Avatar
Xavier Brochard
-

Very nice idea. Displaying UoM on ecommerce product page is simple and elegant.