Skip to content
Snippets Groups Projects
Commit b37243b8 authored by qmo-odoo's avatar qmo-odoo Committed by Thibault Delavallée
Browse files

[FIX] website_slides: fix crashes on channel creation/edit

SPECIFICATIONS

Before this commit, creating a channel would crash because of NewID key
not existing in a dictionary for compute fields. A crash would also happen
when deleting a slide from the channel form view.

LINKS

Task 1978731
PR #33255
parent f5ddd6f1
No related branches found
No related tags found
No related merge requests found
......@@ -227,7 +227,7 @@ class Channel(models.Model):
result[cid].update(cdata)
for record in self:
record.update(result[record.id])
record.update(result.get(record.id, {}))
def _compute_slides_statistics_type(self, read_group_res):
""" Compute statistics based on all existing slide types """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment