OCA/e-commerce

Error using dynamic content products (block) when using a catergory where all the products are unpublished

Closed this issue · 6 comments

Module

The name of the module that has a bug.
website_hide_price

Describe the bug

A clear and concise description of what the bug is.
Adding a new block products on the website

When having no products published of a category it will give error 'null' the user will not notice that but when you want to edit the website page you will get that error.
views/website_sale_template.xml line 60 is the error

user_id.partner_id.website_show_price and not data['website_hide_price']
needs to change to:
user_id.partner_id.website_show_price and not data.get('website_hide_price')




user_id.partner_id.website_show_price and not data.get('website_hide_price')


Hi, @arnaud-tricore What's the version?

Odoo v16.0
For the module itself I downloaded the latest version @chienandalu

Can you propose a PR?

views/website_sale_template.xml line 60 is the error

user_id.partner_id.website_show_price and not data['website_hide_price']
needs to change to:
user_id.partner_id.website_show_price and not data.get('website_hide_price')

Give me a moment @chienandalu

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.