videos, infographics. Some kind of slideshare clone, to summarize. Featuring : - channel management: classify slides (presentations, videos, documents, ...) and tune their access rights for visibility, uploading and downloading - full branding new shiny website module ! - automatic fetch of youtube and google docs information based on URL - statistics: views, likes, interfaced with messaging, ... - embed mechanism to embed slides in other websites Courtesy of RD India, notably Mantavya Gajjar, Ravi Gadhia, Vijay Patel, Pariket Trivedi Courtesy of Use Merge Team, notably Jerome Maes and Richard Mathot Let us not forget our usability testing teams that tested it quite a lot of time. Special thanks to Martin Trigaux that did nothing.
25 lines
854 B
Python
25 lines
854 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from openerp import api, fields, models
|
|
|
|
|
|
class website_config_settings(models.TransientModel):
|
|
|
|
_inherit = "website.config.settings"
|
|
|
|
website_slide_google_app_key = fields.Char(string='Google Doc Key')
|
|
|
|
@api.model
|
|
def get_website_slide_google_app_key(self, fields):
|
|
website_slide_google_app_key = False
|
|
if 'website_slide_google_app_key' in fields:
|
|
website_slide_google_app_key = self.env['ir.config_parameter'].sudo().get_param('website_slides.google_app_key')
|
|
return {
|
|
'website_slide_google_app_key': website_slide_google_app_key
|
|
}
|
|
|
|
@api.multi
|
|
def set_website_slide_google_app_key(self):
|
|
for wizard in self:
|
|
self.env['ir.config_parameter'].sudo().set_param('website_slides.google_app_key', wizard.website_slide_google_app_key)
|