summaryrefslogtreecommitdiff
path: root/addons/website_slides/data
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2019-08-12 13:26:36 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-12 15:40:36 +0000
commit5269d8c27f9f5e7b2d0ab86db6423f6ffa227f40 (patch)
treed75a94adc11cfa5ed8ac37d3935c14c939d17eaa /addons/website_slides/data
parent2af9570c5bea778b4a9581273a83744ba39b80cf (diff)
[REF] website_slides: improve duration computation of a slide/course
The completion time of a slide now has default values for slides of type * video (duration of the YouTube video); * PDF (number of pages * 5 minutes); This computation is done when uploading a slide in frontend or by an onchange in backend. Field can still be given / modified by elearning people as result may not be reliable (pdf parsing is not accurate, and/or you may estimate time differently from strict page-based computation). The course will sum up all durations of its (active) slides. Display has been changed from "x minutes" to "x hours y minutes". Task ID 2007294
Diffstat (limited to 'addons/website_slides/data')
-rw-r--r--addons/website_slides/data/slide_slide_demo.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/data/slide_slide_demo.xml b/addons/website_slides/data/slide_slide_demo.xml
index b35f2defc5f..0a88c4a7498 100644
--- a/addons/website_slides/data/slide_slide_demo.xml
+++ b/addons/website_slides/data/slide_slide_demo.xml
@@ -445,7 +445,7 @@
<field name="is_published" eval="True"/>
<field name="is_preview" eval="False"/>
<field name="public_views">0</field>
- <field name="completion_time">1</field>
+ <field name="completion_time">3</field>
<field name="description">Learn of to identify quality wood in order to create solid furnitures.</field>
</record>
<record id="slide_slide_demo_5_2" model="slide.slide">