diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2021-01-05 13:56:06 +0000 |
|---|---|---|
| committer | Nasreddin (bon) <bon@odoo.com> | 2021-01-06 08:25:27 +0000 |
| commit | 0de069b8ca9fb005ba5b076984f5677de25889ee (patch) | |
| tree | d2229d2db7cdabc5c09d05632d10bcb4d0e4a2f4 /addons/web_editor/models | |
| parent | 0024b592b2d589138f34e27c724b8d471d213a4d (diff) | |
[FIX] website,website_sale: Dynamic products isn't visible if category deleted
Issue
- Install "Ecommerce" app
- Go to 'Shop' page and edit it
- Add a "Dynamic Products" block
- Click on it to edit it :
- Select any template
- Select `Desks` as product category
- Save
- Go to "Website -> Configuration -> eCommerce Categories"
- Delete the "Desks" category
- Go back to Shop page
Error : "Record does not exist or has been deleted".
Cause
The search domain is looking for child categories of dataset.productCategoryId
(who does not exist anymore in the above case).
`child_of` do a browse() to fetch the records, and therefore generate
an error if category not found.
Solution
Check if dataset.productCategoryId exist before updating domain.
opw-2416231
closes odoo/odoo#64090
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
Diffstat (limited to 'addons/web_editor/models')
0 files changed, 0 insertions, 0 deletions
