- Feb 19, 2019
-
-
Christophe Monniez authored
When evaluating js tests using the browser_js method, they are considered a success when 'ok' is found in the console log and a failure if 'error' is found instead. This is not very robust and recently failed with this commit : 7410de11 It adds a filter named 'Error' in a view, when the 'click_all' test clicks on this filter, a message with the name of the filter is written in the console, wrongly leading to a test failure. With this commit, the browser_js method expects a log message in the browser console with the explicit text "test successful". On the other hand, any error in the console log will lead to a test failure but a test can be forced to fail with the explicit error message in the browser console "test failed". As a bonus, the python logger should now also log browser js trace messages. closes odoo/odoo#31158
-
Robot Odoo authored
Purpose ======= The "publish/unpublish" widget is always shown on slide.channel/slide.slide for a website_publisher user even if he's not allowed to manage the publishing of the channel (see slide.channel.can_publish field). This commit will hide the widget on both the slide.channel and the slide.slide frontend pages if the user doesn't have the right to publish/unpublish. A generic solution implemented directly in the publish mixin has been chosen to ease understanding and allow easy reuse in other applications. Commit linked to task ID 1902304 (main elearning task). closes odoo/odoo#31187
-
Robot Odoo authored
closes odoo/odoo#30835
-
Aurélien Warnon authored
Purpose ======= Handle publishing of the slide.slide/slide.channel accordingly to the new 'can_publish' field in the website published mixin.
-
Aurélien Warnon authored
Purpose ======= The "publish/unpublish" widget is always shown on the frontend as long as the user is a website_publisher and the object has a "website_published" field. In some modules (namely website_slides) we need to handle a more refined level of access. This commit adds a "can_publish" computed field that can be overridden to add some additional access rules to the object and hide the widget if the user doesn't have the rights to publish/unpublish.
-
- Feb 18, 2019
-
-
Yannick Tivisse authored
closes odoo/odoo#30432
-
RomainLibert authored
Task 1913733
-
RomainLibert authored
When creating a pos session we try to link the session to the first cash journal we find. The problem is that we cannot link a journal comming from another company this is strictly forbidden by a constraint. This is why we should make sure that we search only for journals in the same company as the config. Task 1913733
-
Yannick Tivisse authored
They don't show anything that is of interest. Task 1913733
-
qsm-odoo authored
task-1907934 closes odoo/odoo#31114
-
Robot Odoo authored
[MERGE][IMP] website{_profile, _slide,_forum,*} : improve slides integration in user profile and add karma generation Purpose of the merge is to continue the work done from PR #30988. This completes the website profile page, gamifies the under development eLearning [1][2] and continues integration between eLearning and the forum. This merge contains notably: - Complete profile page with course progression detail and eLearning certifications - Apply Karma gains on various action on the eLearning - Allow to set the communication type on eLearning course at creation (frontend) - Redesign website users page See sub commits for more details. Merge linked to task ID 1922159 (elearning gamification / website_profile) and task ID 1940516 (forum comments) PR #31097. [1] see task ID 1902304 (main eLearning task) PR #29876. [2] see task ID 1936153 (new homepage for slides) PR #30770. closes odoo/odoo#31109
-
David Beguin authored
As the eLearning (website_slides) is also using website_profile users, the All Users page is moved from website_forum to website_profile, to be useable in both forum and eLearning. This page displays also the number of karma point, badges and certificates of each user. The users are sorted by their karma points and the first 3 users are promoted on a podium. Use span instead of b tag in profile page Task ID : 1922159 PR #31109
-
David Beguin authored
For users viewing their own profile page on the website, a new section 'Certifications' is added to the about tab. Thoses certifications are the survey that activated certificate. Task ID : 1922159 PR #31109
-
David Beguin authored
Since 556b6454dab07cdf716d404ec0db9aa51a09b165, channel can be linked to a dedicated forum. But the link could only be done in backend, in the slide.channel configuration For now on, website_publishers can create a new dedicated forum when they create a new slide.channel. Link buttons have been added in both forum and slide.channel headers to navigate easily between them. Fix the relation between course and forum in a model point of view. Task ID : 1922159 PR #31109
-
David Beguin authored
To gamify the new elearning, karma can be gained on various actions - rank a slide_channel (course) - vote for a slide - finish a course This commit also fix the 'completed' computation on slide.channel.partner Task ID : 1922159 PR #31109
-
Thibault Delavallée authored
-
David Beguin authored
Two new sections are added in the profile page : Completed courses and Followed courses Thoses sections replace the former 'Courses' section. Use span instead of b tag in profile page Task ID : 1922159 PR #31109
-
Xavier Morel authored
Previously we'd `append` the extensions and odoo parent directories to sys.path, however this means if an `odoo` is already installed in a sys.path (e.g. global installation, or setup.py develop in a venv, ...) *that* will be used as the source of Python code (for autodoc) instead of the Python source being synchronised with the rst, which can lead to very odd behaviour. Prepend the doc's stuff to the PYTHONPATH instead, to ensure they get priority and the code matching the rst gets loaded.
-
Xavier Morel authored
Would yield block quotes instead of code blocks or lists or whatnot.
-
Xavier Morel authored
-
Xavier Morel authored
Make UnknownNS more capable (of giving no fucks) so the documentation builder blows up less on weird-ass code at module toplevels. UnknownNS should probably be split out from NSDoc though, that requires odd workarounds in `__getitem__`.
-
- Feb 15, 2019
-
-
Juhil Somaiya authored
If user has blocked odoo push notifications then there's no way to enable via the OdooBot notification in the systray as it depends on the navigator so display the alert message under users preference section. Related Task ID: 1929547 closes odoo/odoo#30496
-
- Feb 18, 2019
-
-
svs-odoo authored
Active currencies are given in session_info, in the page source. When the user activated a new currency, he had to reload the page to make the browser aware of that new currency (without reloading, there was no currency symbol displayed next to the amounts). This rev. forces a reload of the currencies each time a currency is edited. Task #1838654 closes odoo/odoo#31192
-
Robot Odoo authored
This commit add tests for new mixin product.image and resizing. Purpose is to test feature merged by commit: 413c6355 closes odoo/odoo#31181
-
Sébastien Theys authored
This commit will add tests for the PR #30656 which added the following commit: 7daa85dd The tests in the current commit achieve 100% code coverage for: - the `image.mixin` - the overridden `image.mixin` methods in `product.product` - the `_get_images` methods of ecommerce - the size logic in method `content_image` (route `/web/image`) PR: #31181
-
Sébastien Theys authored
-
- Feb 12, 2019
-
-
Alexandre Kühn authored
Revision on https://github.com/odoo/odoo/commit/975164473ccd51c00eee5917dddbd8be71b5aefc The commit above improves the channel_info, so that there are less DB queries. However, the computation was wrong for partners on dm chat, which resulted in omitting the name and email of the partner. closes odoo/odoo#31033
-
- Feb 18, 2019
-
-
David Monjoie authored
closes odoo/odoo#31159
-
- Feb 15, 2019
-
-
David Monjoie authored
The webclient doesn't handle a non-existing view as the default view. However, it must handle it correctly if it is not the default one since it does it for mrp.production already. closes odoo/odoo#31161
-
Robot Odoo authored
Purpose of this merge is to improve inclusion of gamification and ranking in elearning new main pages [1][2]. Ranking and profile information, links and templates are added. Some fixes are included in this merge, notably statistics computation, better slide image fetch and demo data. See sub commits for more details. Commit linked to task ID 1941250. closes odoo/odoo#31133
-
Thibault Delavallée authored
Slide description is actually a text field, no need to put html tags that are displayed raw. Commit linked to task ID 1941250 and PR #31133.
-
Thibault Delavallée authored
Purpose of this commit is to improve karma and gamification inclusion in elearning [1]. * remove a border, replaced by a standard hr, in rank template. It allows to reuse it easier as we don't necessarily want that border in other templates using it; Commit linked to task ID 1941250 and PR #31133. [1] task ID 1922159 (landed at 5fa651cb)
-
Thibault Delavallée authored
Purpose of this commit is to * clean user avatar controller and its calls; * extract default image computation; * add a controller to get slide image even when not having access to the slide as all slide name and images are displayed even if not available to the current user; Commit linked to task ID 1941250 and PR #31133.
-
Thibault Delavallée authored
Purpose of this commit is to clean motivational capabilities of gamification ranks[1]. It makes more sense to store a motivational to achieve on next rank itself. We therefore rename the field and provide nice demo data that will be used in elearning use of gamification ranks. Commit linked to task ID 1941250 and PR #31133. [1] task ID 1922159 (landed at 91ee6ba5)
-
Thibault Delavallée authored
This commit fixes various issues introduced by recent commits in slides * fix slide type computation: using a dict in a fromkeys makes a shared object for all keys. It is better to fix that behavior; * correctly display number of course steps in elearning homepage. Currently number of steps of a course is simply the length of its one2many; holding slides. However this one depends on access rights which give funny results like a course with 2 steps for public users and 7 for admin; Right computation is: number of published lessons, whatever your access rights are. This is already computed as total_slides; * people that cannot publish should not be able to unpublish; Commit linked to task ID 1941250 and PR #31133.
-
Robot Odoo authored
Task #1940360 Subtask of #1902304 Purpose ======= Adds certification capabilities to the website_slides module. Channel/courses can now include certifications as a new type of slide. This new type of slide is available as a "Certification" button on the slide creation frontend view (next to "Video", "Presentation", ...). Users have to link the slide to an actual survey that has the 'certificate' field set to true (that will populate the slide's survey_id field). Slides of type certification are handled in frontend in a very simple way for now: - A button "Begin certification" that redirects the user to the related survey frontend. - A button "Download certification" when the user has succeeded the certification. (A new download route has been added in the survey module to make it work.) - When the survey is done, if it's linked to a slide, a button "Go back to course" allows the user to go back to the slide frontend. (There is a special use case for when the website_publisher designing the survey lands on a certification slide: he is allowed to test the survey with a survey_input created as test_entry) Survey creation as well as limited time, limited number of attempts, ... are still completely handled in the survey module. That means that the user will have to first create a suitable survey that is a certification and only then create a slide of type "certification" and link the created survey to it. Ideally, the taking of the survey should be transparently included in the slide frontend but it requires a full refactoring of the way surveys are submitted. This will most likely come in a later commit. This commit is an advanced merge of full eLearning module (see task #1902304). closes odoo/odoo#31060
-
Aurélien Warnon authored
Purpose ======= Channel statistics computation in the _compute_slides_statistics method did not work for a batch of channels. (The stats dict was shared for all the channels).
-
Aurélien Warnon authored
Task #1940360 Subtask of #1902304 Purpose ======= Adds certification capabilities to the website_slides module. Channel/courses can now include certifications as a new type of slide. This new type of slide is available as a "Certification" button on the slide creation frontend view (next to "Video", "Presentation", ...). Users have to link the slide to an actual survey that has the 'certificate' field set to true (that will populate the slide's survey_id field). Slides of type certification are handled in frontend in a very simple way for now: - A button "Begin certification" that redirects the user to the related survey frontend. - A button "Download certification" when the user has succeeded the certification. - When the survey is done, if it's linked to a slide, a button "Go back to course" allows the user to go back to the slide frontend. (There is a special use case for when the website_publisher designing the survey lands on a certification slide: he is allowed to test the survey with a survey_input created as test_entry) Survey creation as well as limited time, limited number of attempts, ... are still completely handled in the survey module. That means that the user will have to first create a suitable survey that is a certification and only then create a slide of type "certification" and link the created survey to it. Ideally, the taking of the survey should be transparently included in the slide frontend but it requires a full refactoring of the way surveys are submitted. This will most likely come in a later commit. This commit is an advanced merge of full eLearning module (see task #1902304).
-
Aurélien Warnon authored
Task #1940360 Subtask of #1902304 Purpose ======= The slide/all route now supports a 'slide_type' param that will filter channels to contain at least one slide of type 'slide_type'. This is a preliminary work for the slides_survey bridge.
-
Aurélien Warnon authored
Task #1940360 Subtask of #1902304 Purpose ======= This commit adds a route allowing to download a certification for a user that has succeeded it. It's currently not used in any views but it's a preliminary work for the future slide bridge.
-