[IMP] website_slides: add dependency on website profile

Purpose is to prepare the use of gamification tools in slides. In this commit
we add the dependency on website_profile (gamification front-end) in slides
and add the slides category on challenges.

Partial commit linked to eLearning project. Main specifications related
to gamification and user profile can be found on task 1922159 (PR #30514).
Main specifications related to eLearning can be found on task 1902304
(PR #29876).

Co-Authored-By: David Beguin <dbe@odoo.com>
Co-Authored-By: Thibault Delavallee <tde@odoo.com>
This commit is contained in:
Thibault Delavallée
2019-02-07 12:13:28 +00:00
co-authored by David Beguin
parent b98564479b
commit 43740f94ea
3 changed files with 16 additions and 1 deletions
+5 -1
View File
@@ -17,7 +17,11 @@ Share and Publish Videos, Presentations and Documents'
* Channel Subscription
* Supported document types : PDF, images, YouTube videos and Google Drive documents)
""",
'depends': ['website', 'website_mail', 'website_rating'],
'depends': [
'website',
'website_mail',
'website_profile',
'website_rating'],
'data': [
'views/assets.xml',
'views/res_config_settings_views.xml',
+1
View File
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from . import gamification_challenge
from . import slide_slide
from . import slide_channel
from . import res_config_settings
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class Challenge(models.Model):
_inherit = 'gamification.challenge'
category = fields.Selection(selection_add=[('slides', 'Website / Slides')])