- Feb 06, 2019
-
-
Jérome Maes authored
When a portal user post a message to review a channel, we want to allow him to edit its own comment and rating. This commit modifies the special check access method in portal to extract the security check and reuse it to allow user to update its comment on slide.channel only. We decided to reuse existing widget (new rating popup composer) to do the message modification. Task-1902304
-
Jérome Maes authored
This commit fix the display of a label when the user add a review; when selecting desired stars, the label corresponding to the star is displayed in a badge. The bug probably comes from the update to bootstrap 4.
-
Jérome Maes authored
This commit allows user to rate a slide channel: using the new Popup Rating Composer, users having access to the slide channel can submit a rating with a comment. Then, lower in the page, they can see the ratings of other users. Task-1902304
-
Jérome Maes authored
Before this commit, it was possible to post a message on a document the user has no access, thanks to a token. In addition to this token, if a hash (signed token with a partner id), the author_id of the message was forced. This commit change a little bit that logic by distinguish 2 cases: 1/ Token only: anyone with the token can post a message on the document. If the user is not logged (public with token), the author_id will be the customer of the document (or the public user). This case is moslty used for business document, through the portal or with the "share link" for instance. 2/ Signed token: user has no write access to the document, but can post a message on it. The user have to be logged, as the token is signed with its identifier. The goal here is to avoid leaking the access token's document to all visitors. This case is mostly used for public content, such as blog posts, slides, ... The token case was already existing. The second is now working with this commit. To do so, it was required to - move `_sign_token` from the portal mixin to mail.thread. - transfering 'pid' and 'hash' parameters from the controller to template to js widgets. This commit also change the `_message_post_helper` signature by making the 3 first parameters required, as to post a message you need at lease res_model, res_id and the message body. The optional argurments and kwargs are here to check the bypassing access rights mecanism. Task-1902304
-
Jérome Maes authored
Rating document available on a website will become more common, but we want to do it with different UI widget. This commit introduces a new "popup rating composer": the idea is the rating average is displayed with stars, and when clicking on it, a popup with the composer appears. The user can so submit its review. To do so, we factorize the Portal Composer into a dedicated widget (instead of natively inside Portal Chatter). Task-1902304
-
Jérome Maes authored
This commit provides 1 more field on the rating mixin: the average of the ratings of the document. Before that, the only way to get the average was to call `rating_get_stats` record per record. As we are on a mixin, this new field is not stored to avoid recomputation each time a rating is added. To improve performance, we decided to compute `rating_count` and `rating_avg` in one `read_group`. This commit also set an extendable method to get the domain of the rating to include in those statistics computation, called `_rating_domain`. This way, each model inheriting the rating.mixin can define the subset of pertinent ratings. As consequence, this commit uniformized the way average is displayed: instead of taking the closer value to the 0.5 value, it only round it at 2 digits. Task-1902304
-
Jérome Maes authored
Visitor are now able to search a channel, based on the name or description with a search bar on the channel list page. Task-1902304
-
- Feb 05, 2019
-
-
Antoine Guenet authored
Every new page was being considered an empty homepage with "Welcome to your Homepage! Let's start designing." shown. Now only an empty homepage shows that message. closes odoo/odoo#30839
-
- Feb 06, 2019
-
-
Nikunj Ladava authored
- if currency is set on vendor, and set that particular vendor to product, the currency will not being changed by vendor's currency. - after this commit currency in pricelist will be changed by the currency of the vendor This commit is related to Task ID 1826166 closes odoo/odoo#24468
-
- Feb 05, 2019
-
-
sed-odoo authored
Between 11.0 and master there was a mismatch in the legal values used to compute the co2 fee and the ATN of a company car. Task : 1937082 closes odoo/odoo#30841
-
- Feb 06, 2019
-
-
Robot Odoo authored
* web, web_editor See sub-commits for details. Currently, when an user wants to edit the css of its website, he has access to lots of files and, in debug mode, to even more files. While the feature is nice for people who know what they are doing, a lambda person can easily break its website by changing the wrong files. Also, nothing warns the user that the files that are edited will never receive updates anymore (unless if they are reset). The goal is to prevent those behavior while still allowing the add custom css. Another goal is to be able to *add* custom javascript. Custom files created for the user: SCSS: user_custom_rules.scss, user_custom_bootstrap_overridden.scss JS: user_custom_javascript.js task-1919350 closes odoo/odoo#29999
-
- Feb 05, 2019
-
-
qsm-odoo authored
See https://github.com/odoo/odoo/pull/29999
-
Andrea Ulliana authored
* web_editor Currently, when an user wants to edit the css of its website, he has access to lots of files and, in debug mode, to even more files. While the feature is nice for people who know what they are doing, a lambda person can easily break its website by changing the wrong files. Also, nothing warns the user that the files that are edited will never receive updates anymore (unless if they are reset). The goal is to prevent those behavior while still allowing the add custom css. Another goal is to be able to *add* custom javascript. Custom files created for the user: SCSS: user_custom_rules.scss, user_custom_bootstrap_overridden.scss JS: user_custom_javascript.js See https://github.com/odoo/odoo/pull/29999 task-1919350
-
Andrea Ulliana authored
In task handled in https://github.com/odoo/odoo/pull/29999, we will need support for javascript files in ace editor. This commit adds the related lib files. See https://ace.c9.io/#extending-highlighters: https://github.com/ajaxorg/ace/tree/master/lib/ace/mode 1. https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/doc_comment_highlight_rules.js 2. https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/javascript_highlight_rules.js 3. https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/javascript.js task-1919350
-
Thibault Delavallée authored
Purpose of this commit is to prepare future code addition by making some noise in a separate commit. In this commit we move compute methods below fields definition because currently it is a complete mess and finding a given field gives a headache. Commit linked to task ID 1933820 and PR #30830.
-
Thibault Delavallée authored
In order to avoid spam and unwanted notification this commit limits auto subscription on channel when * creating a channel; * automatically telling a channel a new publication has been done; * creating a slide; As being a follower of a slide channel means following its slides user should choose manually to be follower of a channel, notably through the UI. A new way of managing subscription will come with elearning in mind and therefore auto subscription should be limited. Commit linked to task ID 1933820 and PR #30830.
-
- Feb 04, 2019
-
-
Antoine Guenet authored
closes odoo/odoo#30809
-
Antoine Guenet authored
closes odoo/odoo#30801
-
Antoine Guenet authored
This fixes issues with CTRL+A then delete. Now CTRL+A selects all the contents of the unbreakable node in which the range is contained. Deleting it all will replace the contents with `<p><br></p>` so the user can start editing afresh. Note: Only CTRL+A is handled: ``select all`` in contextual and edit menus are still handled by the browser. closes odoo/odoo#30648
-
- Feb 05, 2019
-
-
RomainLibert authored
In the overrides of _name_search we should avoid creating domains with huge lists of ids as it is inefficient. We can also make sure that we optimize the empty search as in this case the custom domain doesn't make sense, we can simply search on an empty domain and, thanks to the limit argument, still keep a fast query. Linked to task 1918906 Thanks to @odony and @nseinlet closes odoo/odoo#30155
-
Robot Odoo authored
This merge improves the Dashboard app and make it more usable on mobile: - The layout is fixed to 1 column. - Embedded Kanban view is fitted to its content and handle correctly empty columns. - Embedded Pivot view has smaller left indentation for readability purpose. Task ID: 1904747 closes odoo/odoo#30467
-
Hetal Dhanak authored
-Moved the share Button to the dropdown Action menu as it was better suitable there. -moved sale order item field to extra info as it was better suitable there. -changed display of settings for project to give it organized look. Related Task ID: 1928422 closes odoo/odoo#30310
-
- Feb 04, 2019
-
-
Parth Choksi authored
Purpose ======= It only makes sense to display 'Save' and 'Discard' if the user actually changed something in the settings. So after this commit, the 'Save' and 'Discard' buttons of statusbar in general settings will only appear when you make any changes. Also when there are changes, there will be a message shown that will tell the user that he/she has unsaved changes. The commit is related to Task ID: 1917637 Co-authored-by:
Mohammed Shekha <msh@openerp.com> closes odoo/odoo#29726
-
- Feb 05, 2019
-
-
Mohit Ghodasara authored
Purpose of this merge is to update main addons and set activity types used for automated activities as master data. This means they cannot be removed. Indeed those activity types are used in business flow to generate activities and removing them may break some flows. This commit is linked to task ID 1907970 and PR #29257.
-
Mohit Ghodasara authored
Purpose of the task is to improve the usability of activity types and activity scheduling. Another purpose is alto to protect some master data activity types by flagging them and preventing their deletion. Containing * make the activity type as master data so deletion will be prevented; * improve the usability of the activity type; * prevent the deletion of activity type which are used for automated activity; * change the usability of activity scheduling modal; This commit is linked to task ID 1907970 and PR #29257.
-
Darshil Trivedi authored
closes odoo/odoo#23031
-
Vandan Shah authored
Task:- 1906798 PR:- #28669 Co-authored By:- Mohammed Shekha <msh@odoo.com>
-
- Feb 04, 2019
-
-
Nimesh Jethva authored
name_get() override when payment in draft display the result false. screenshot : https://drive.google.com/file/d/1dT22ysXmSOJvXMhzhyh_0tVW9z_v3b-s/view?usp=drivesdk closes odoo/odoo#27537
-
Nimesh Jethva authored
Purpose ======= Every change to invoice is indicated in the chatter - the state, the person, and the time is indicated in the chatter. This is currently not the case for payment - It should be the case, as if I were in charge of these things, I would like to know who did what and when. Specification ============= Add chatter followup on payment to know who did what and when. Related Task ID : 1880825
-
- Feb 05, 2019
-
-
Siddarth Gajjar authored
- Added new library zeep for soap request. - Remove old suds library. Task ID: 41696 Closes #26934
-
qsm-odoo authored
* website_forum, website_gengo, website_mail_channel, website_sale Retrieving the global context is now the root's job, this will prevent problems when trying to extend the values the context has. See upcoming improvements with https://github.com/odoo/odoo/pull/29442 closes odoo/odoo#30816
-
Christophe Simonis authored
Oversight of previous forward-port
-
Christophe Simonis authored
Theses tests does not works with latests changes. Skip these to allow other changes to be commited.
-
- Feb 04, 2019
-
-
Christophe Simonis authored
-
- Feb 01, 2019
-
-
Priyanka Kakadiya authored
last_year_mo_order was removed in commit 4a350ff8. However it was still used in action_view_mos. This commit adpat the action context in order to keep the same behaviour than previously. task id 1922547 closes odoo/odoo#30347
-
- Feb 03, 2019
-
-
Christophe Simonis authored
As usual, I mess up with forward-ports. This one was actually nasty, as no syntactic error was introduce, while only failing because of this left over `console.error` call.
-
Odoo Translation Bot authored
-
- Feb 01, 2019
-
-
wan authored
Task 1915154 The chatter will mainly be used for communication / messages Add the chatter to account.move Do not generate message at the record creation Do not track any field closes odoo/odoo#29274
-
Prakash Prajapati authored
Issue: - Create a RFQ for a stockable product - Try to validate - A required field "deliver to" (picking_type_id) is not set Rev [1] moved the stock related part of purchase_requisition to purchase_requisition_stock. It implements an onchange on the purchase order setting the picking_type_id of the one of the requisition. When no requisition is set, it wiped the default one. We fix the issue by only using the picking type of the requisition if a requisition is actually set. [1] 826f927a Task: 1935077 closes odoo/odoo#30685
-
Sébastien Theys authored
Before this commit, it was possible for the user to click on the Sign button even when the signature area was empty, which would lead to an error message. Now we disable the button when the area is empty. Related to enterprise PR: https://github.com/odoo/enterprise/pull/3535 PR: #30653
-