eLearning - Odoo 20 Community Book

Contents

Sections and Contents

The tab Content is where the course is built. The link Add Section adds a line in which the name of the section is typed, such as Everyday care. The link Add Content opens the window Create Content, and the link Add Certification adds a certification as a content of the course. The handle in front of every line moves it, so the order of the lessons is the order of the table. The example has two sections, with the articles first and the other kinds of content added after them.

odoo Development

The Window Create Content

The window starts with the Content Title, the picture and the Tags. Its first tab, Document, begins with the Content Type. The type decides which other fields are shown: Image, Article, Document, Video, Quiz or Certification. A Document can be uploaded from a device or retrieved from Google Drive. When a PDF is chosen, its name is shown with a trash icon and the Duration fills itself, here 5 minutes for a one page file. The file must be a valid PDF: Odoo draws its first page as a picture when the content is saved, and a damaged file stops the save with the message Invalid Operation, This file could not be decoded as an image file. An Article has only the fields common to all, which are the Responsible, the Duration, the tick Allow Preview and two counters, the number of public views and the number of total views. The tick Allow Download, which is shown for a document, lets the learner download the file, and the viewer of the lesson then shows a download icon.

odoo Development odoo Development

The tick Allow Preview makes the content visible to people who have not joined the course. The example gives it to the first article, which works as a free sample of the course. The other tabs of the window are Description, with a short text about the content, Additional Resources, which lists files and links that go with it, and Quiz.

Quizzes

The tab Quiz of a content turns the lesson into a small test. The block Points Rewards sets the points that a learner earns according to the number of tries: First Try 10, Second Try 7, Third Try 5, and Fourth Try & More 2. The block Questions lists the questions of the quiz.

odoo Development

The link Add a line opens the window Create Questions. It reminds the author that a question must have at least one correct answer and one incorrect answer. It asks for the Question Name and a list of answers. Each answer has a tick Is correct answer and an optional Comment, which the learner reads after answering. The example asks which finish protects an oak desk best, with the answers A hard wax oil, which is correct and carries the comment that hard wax oil soaks into the wood and can be renewed without sanding, Kitchen cooking oil and Plain water.

odoo Development odoo Development

After the question is saved, the tab Quiz shows it in the table, with its answers. The button Save & Close keeps the content, and Save & New starts another one.

odoo Development

Publishing a Content

A new content is not visible to visitors. On the course page, an unpublished content carries the badge Unpublished, and the website bar of the lesson shows a switch that reads Unpublished. When the content is published, the badge changes to New for a while, and the column Published of the form is ticked. The duration of a lesson, set in the window, is added up in the line of its section and in the Completion Time of the course. In the example, each article lasts a quarter of an hour and the checklist five minutes, so the course page shows 35 minutes.

Courses > Contents lists the lessons of all the courses in one table, with the Title, the person who uploaded it, the Course, the Published date, the number of views, the number of questions and the Duration. It is the place to find a lesson without opening its course, and the search offers the filters My Content, Published and Waiting for validation.

odoo Development

Videos, Images, Documents and Certifications

A video lesson points to a video on the web. The Content Type Video shows a field Video Link, with the hint of an address such as www.youtube.com/watch?v=ebBez6bcSEc, and the tick Allow Preview. The address of one video is what Odoo recognizes: after the save, the lesson shows the video in a player. A short address of the form youtu.be/<video code> is accepted in the same way, with or without the parameters that YouTube adds to the end. The address of a whole playlist is accepted by the form but not recognized as a video, so the lesson has no player, and the title and the duration are not filled in either. In every case the Duration of the lesson stays at 0 until someone types it. The example uses a public YouTube tutorial about a mobile sales app, only to show how a video lesson works. It is a test video and has nothing to do with oak furniture, so its title in the course is Test video: a mobile sales app in action, and a real course would use its own video.

odoo Development odoo Development

An image lesson carries a picture. The Content Type Image offers Upload from Device or Retrieve from Google Drive, a field to upload the file and the tick Allow Preview, without a tick Allow Download. When the file is chosen, a small copy of it fills the picture slot of the window, and after the save the course line shows the category Image. On the website, the lesson shows the picture over the full width of the page. In the example, a picture of the grain of oak was added as a detail of the wood.

odoo Development odoo Development

A document lesson carries a file instead of a text. In the example, a one page checklist of the care of an oak desk was added to the last section as the content Oak care checklist, with the tick Allow Download and the tick Allow Preview. The line of the course shows the category Document and the duration 0h 5m, and a new content starts unpublished like the others.

odoo Development odoo Development

The tick Allow Download controls the download icon of the viewer. When it is cleared, the toolbar under the document keeps the page counter, the zoom, the page buttons and the full screen button, and the download icon is gone, so the learner can read the file but cannot save it from the viewer.

odoo Development

A certification is added with the link Add Certification. It opens the same window with the Content Type already set to Certification and a field Certification that lists the tests of the Surveys application, here Furniture Creation Certification, MyCompany Vendor Certification and Furniture Care Certification. Choosing one fills the Content Title with its name. After the save, the line of the course shows the category Certification and the name of the test in the column Certification.

odoo Development odoo Development
WhatsApp