Skip to content
Permalink
Browse files

[FIX] website_slides: fixed the traceback when add a new section on a…

… course

in this commit, we have set the correct attribute(field's name) to fix
the traceback while we adding a new section on a course using website

task-2053822

closes #35786

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
  • Loading branch information...
hap-odoo authored and jpr-odoo committed Aug 16, 2019
1 parent 8710a28 commit 230c544caa7e2698f53bd54382a071099e3f21f9
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/website_slides/controllers/main.py
@@ -143,7 +143,7 @@ def _get_new_slide_category_values(self, channel, name):
'channel_id': channel.id,
'is_category': True,
'is_published': True,
'sequence': channel.slide_ids[-1]['sequence'] + 1 if channel.slide_id else 1,
'sequence': channel.slide_ids[-1]['sequence'] + 1 if channel.slide_ids else 1,
}

# CHANNEL UTILITIES

0 comments on commit 230c544

Please sign in to comment.
You can’t perform that action at this time.