- Mar 07, 2019
-
-
Thibault Delavallée authored
Purpose of this commit is to perform a cleaning and upgrade of the lesson view in front-end when not using the fullscreen mode. This page had not been updated since eLearning addition. A method is added on slide model to have a protected method computing quiz related information on a given set of slides, notably potential karma gain, gained karma and number of attempts. It is mainly a code move from controllers now working in batch. Some linting is also done, notably a badly-named file. See original eLearning task for main specifications [1]. Commit linked to task ID 1941250 and PR #31657. [1] See task ID 1902304 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Mar 01, 2019
-
-
Romain Estievenart authored
Currently Odoo JavaScript code base support only ecmascript <= 5 So using a non compliant ES5 syntax can trigger a javascript engines crash for some browsers like: IE, webview used by some old mobile devices. This commit fixes non compliant JS code syntax found to avoid potential crash. closes odoo/odoo#31522 Signed-off-by:
VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
-
Romain Estievenart authored
Currently Odoo JavaScript code base support only ecmascript <= 5 So using a non compliant ES5 syntax can trigger a javascript engines crash for some browsers like: IE, webview used by some old mobile devices. This commit fixes non compliant JS code syntax found to avoid potential crash.
-
- Mar 07, 2019
-
-
Thibault Delavallée authored
Otherwise zizisse error traceback prone. closes odoo/odoo#31672 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Mar 05, 2019
-
-
mgh-odoo authored
Previously, when user edited record having 'field_html' widget and tried to save the record immediately, a traceback was faced sometimes because content was not loaded yet. This commit fixes the issue by calling super method if the content is not loaded yet properly. Task: #1932687 Closes: #30833 closes odoo/odoo#31581 Signed-off-by:
VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
-
- Mar 07, 2019
-
-
Jérome Maes authored
This commit makes the quiz widget a real odoo widget that triggers up some events. The widget is now only responsible of * fetching quiz data (if not given) * decorating the anwsers according to the result * displaying message (error or modal) To do so, some code move/rewrite was needed * extract and factorize some template * add 'sudo' on technical model to avoid access rights error * factorize some python method from controller to model * remove some CSS classes to lighten the code * fixing access model error * make quiz widget handle the display of error message * give browse record for template rendering, rather than slug * cleaning some spaghetti code in Fullscreen widget * ... Commit linked to task ID 1941250 and PR #31584. Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
David Beguin authored
When creating a course via the frontend, the behaviour with forum and comment should be the same than from backend. The website_publisher can decide to create or not a forum linked to this course and decide independantely to allow the review and comment on that course. Commit linked to task ID 1941250 and PR #31584.
-
Thibault Delavallée authored
I promise to fix all deferred. Huk huk huk. Commit linked to task ID 1941250 and PR #31584.
-
- Mar 06, 2019
-
-
Robot Odoo authored
Purpose of this merge is to perform some code cleaning in eLearning controllers and demo data. There are also some fixes coming from first user testing of eLearning. See sub commits for more details. Merge linked to task ID 1941250 ("fix all the eLearning"). closes odoo/odoo#31512 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
David Beguin authored
Since design refactoring from af41382f, eLearning navbar style was not displayed correctly. This commit fixes this by applying same design rules as user profile page navbar. Task ID : 1941250 PR #31512
-
David Beguin authored
If a new user try to access the elearning platform or his porfile, if he has no karma, has it is the case for new users, he won't get any rank. So that the next rank karma minus current rank karma equals zero. To avoid this, next_rank will always be first one existing if the user has no karma. Also, the current rank will not be displayed if the user has no karma. finally, next rank will not be displayed if the user reached the last existing rank. Task ID : 1941250 PR #31512
-
David Beguin authored
Badges that should be displayed on user's profile page must be website published. Badges that are website_published are typically forum badges or others that will be configured for eLearning. Task ID : 1941250 PR #31512
-
Thibault Delavallée authored
Simple fix to already have the standard gray background. Future commits will improve display of not fullscreen lessons but this fix was necessary for incoming work. Commit linked to task ID 1941250 and PR #31512.
-
Thibault Delavallée authored
Currently a slide that can be previewed is never set as completed. Correct condition to not update the hard slide-partner relationship is: * either current user is public; * either current slide is not published (happens when a publisher sees still unpublished lessons); * either current user is not member of slide channel (happens when seeing a free preview slide without being channel member); Commit linked to task ID 1941250 and PR #31512.
-
Thibault Delavallée authored
Correctly fetch courses the current user is a member of, not those he already finished at least a lesson. Commit linked to task ID 1941250 and PR #31512.
-
Thibault Delavallée authored
Currently there is a tool method on controller allowing to prepare some slide related data. However controllers still add values in the slide dictionary outside of this method, making it non consistent. Let us prepare all side related data in this tool method to simplify code understanding. Commit linked to task ID 1941250 and PR #31512.
-
Thibault Delavallée authored
Purpose is to order methods and routes according to the main related model. Main routes are above, then tools (sub routes, json routes). Commit linked to task ID 1941250 and PR #31512.
-
Thibault Delavallée authored
Purpose is to have a bit more demo data allowing to test quizzes and see how they behave. Notably * have more than one question in existing quizzes to check answer validation more in-depth; * have more than 2 answers to check answer highlighting more in-depth; * clean a bit user related demo for channels and slides; Commit linked to task ID 1941250 and PR #31512.
-
Antoine Guenet authored
Media dialog was trying to reach the current media's parent node, which was not possible as it was cloned on instantiation. To fix this, the `showImageDialog` now passes the `onlyImages` option upon instantiation, checking the parent's data. It also passes the media's parent if said parent is a video. This way, neither of these two things need to be done in media dialog. closes odoo/odoo#31634 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
- Feb 28, 2019
-
-
Martin Geubelle authored
When renaming a binary field name (through Studio for example), an error occurs since rev. odoo/odoo@66f0e26 As the binary (custom) field is now created with `attachment=True` by default, it has no associated column in the database ; this latter shouldn't be renamed then. Task 1942181 closes odoo/odoo#31504 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
RomainLibert authored
Also apply some linting closes odoo/odoo#31499 Signed-off-by:
Romain Libert (rli) <rli@odoo.com>
-
- Mar 06, 2019
-
-
Gorash authored
Issue detected with tests in the branch that replace deferred by native Promise. Need to add isMedia to detect if the target is already a media when focus the editor. closes odoo/odoo#31632 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Martin Geubelle authored
As both `survey_url` and `public_url` are `Char` fields, the correct widget to use is `CopyClipboardChar` (`CopyClipboardText` is for `Text` fields). This was causing a display issue (the style of mentioned widgets is different). Task 1935577 closes odoo/odoo#31624 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Thibault Delavallée authored
Why reverting ? The fact that the control panel changes width on first edit is confusing to the user. The whole form shifts down. We want to avoid having elements appearing and disappearing. The issue that the user does not know if he has to save is still up to date, and will be addressed in the next saas. We will most likely use what has been done in this task to only display 'There are unsaved changes'. Thank you all for your work here! Original task and revert discussion can be found on task ID 1917637 . This reverts commit 514d6fb9. closes odoo/odoo#31622 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Simon Lejeune authored
Default the responsible to the current user if the mo is created manually. Default the responsible to empty if the mo is created by a procurement rule. task 1938495 closes odoo/odoo#31395 Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-
- Mar 05, 2019
-
-
Romain Estievenart authored
We added the form view to remove no needed fields. It's now use the same fields used by the editable list. We also added the Kanban view to improve the layout "Optionnal Product" tabs on mobile device. Task: 1945006 closes odoo/odoo#31596 Signed-off-by:
=?utf-8?q?Adrien_Dieudonn=C3=A9_=28adr=29?= <adr@odoo.com>
-
Aaron Bohy authored
Commit 4960453d added the field signature in field_registry.js and in signature.js. closes odoo/odoo#31434 Signed-off-by:
=?utf-8?b?R8OpcnkgRGVib25nbmllIChnZWQp?= <ged@openerp.com>
-
Lucas Lefèvre authored
Steps to reproduce: 1. install `hr_contract_salary` 2. create a contract 3. set or update `hr_responsible_id` on the contract (it creates a `mail.tracking.value`) 4. uninstall `hr_contract_salary` 5. go to the contract form view => traceback `hr_responsible_id` does not exist Before displaying a `mail.tracking.value`, `groups` of the fields are checked to fitler tracking values according to access rights of the user. However if the module that added the field has been uninstalled, the field does not exists anymore. Fix: check if field exists before getting fields groups. If the field does not exists: set groups to `base.group_system` closes odoo/odoo#31398 Signed-off-by:
"Yannick Tivisse (yti)" <yti@odoo.com>
-
Lucas Lefèvre authored
super.message_post in _message_log is wrong. Also use `*args` and `**kwargs` in method parameters closes odoo/odoo#31354 Signed-off-by:
"Yannick Tivisse (yti)" <yti@odoo.com>
-
- Mar 04, 2019
-
-
Gorash authored
closes odoo/odoo#31577 Signed-off-by:
VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
-
Gorash authored
For iframes, we need to inject summernote because there are references to "document" in it. When loading the iframe, if it is canceled, there is a risk that the library is erased and that it breaks the field html. We must also slightly modify the library to prevent it from making changes to the library of the main "window".
-
- Mar 01, 2019
-
-
RomainLibert authored
Currently it is not possible to create or write on a mail activity without having the rights to write on mail activity type. This is caused by the some related fields on mail activity are not readonly hence trying to write on mail activity type This issue was previously shadowed by a sudo call both in the create and write methods, those disappeared with the following commit odoo/odoo@b9c8ba83e6b367275eca28255dd7df9b8ac84aa1 As those fields should never have been defined as readonly=False, this commit sets them to readonly=True closes odoo/odoo#31468 Signed-off-by:
"Romain Libert (rli)" <rli@odoo.com>
-
- Mar 04, 2019
-
-
Robot Odoo authored
This merge contains various improvements and fixes related to the new eLearning application. Sub commits will give you more details on this merge content as everything is not completely related. Containing mainly * improve demo data to have more links and quizzes; * redesign the profile page, make it responsive and use bs4 when possible; * fix lesson list in training channels not displaying all slides; * improve lesson list design; Merge linked to task ID 1941250 and PR #31453 about post-merge cleaning and review. Signed-off-by:
"Thibault Delavallee (tde)" <tde@openerp.com>
-
Thibault Delavallée authored
Currently slides are displayed in a reorderable list, using current user access rights. This means external customers see only published and free lessons. However purpose of course page is to display all lessons, and display only available ones as clickable. Other one should be displayed as muted to tease people. Note that a specific lesson page does check for access rights. Here we just display all lessons names. A label for free preview is also added. Fetch of data when displaying a channel is therefore a bit modified as there are less differences between training and documentation channels. User progress is also updated to be easier to use in templates. Commit linked to task ID 1941250 and PR #31453
-
Stefano Rigano authored
Purpose of this commit is to make a new design linting pass on homepage. Containing * various bs4 and responsive improvements; * footer banner improvements; Commit linked to task ID 1941250 and PR #31453
-
sri-odoo authored
Purpose is to perform a cleaning pass on website_profile templates. It cleans the DOM, templates and CSS and proposes various improvements on general design and layouting. This includes notably * lessen custom CSS and use bootstrap 4 classes; * simplify layout when possible; * make is responsive and mobile friendly; No functional changes should occur with this commit. Sub modules are impacted as profile is extended in various other applications: eLearning, forum and certification. Commit linked to task ID 1941250 and PR #31453
-
sri-odoo authored
Purpose is to make it better looking and responsive. Commit linked to task ID 1941250 and PR #31453
-
Thibault Delavallée authored
A specific template to display an icon depending on slide type has been added recently. However presentation icon was missing. This commit fixes that. We also added an option to tune the classes added on the icon. It gives more flexibility when using it. Commit linked to task ID 1941250 and PR #31453
-
Thibault Delavallée authored
Purpose of this commit is to fix and improve some model related bits of code: * add an ondelete cascade on some required fields; * make a public method private because it should be accessed only through controllers; * do not add odoobot as channel member; notably for demo data it can create unnecessary of noise in members and notifications; Commit linked to task ID 1941250 and PR #31453
-
Thibault Delavallée authored
Purpose of this commit is to improve eLearning demo data. Notably links (links to external resources on a given slide) and quizzes (allowing to gain karma) are added. Some slides are added. Demo user interaction with eLearning is also added, such as membership and votes. Finally a channel is specifically kept specific to 1 single slide of type certification as its flow has to bypass some screens when selling pure certifications. Commit linked to task ID 1941250 and PR #31453
-