- Oct 07, 2018
-
-
Odoo Translation Bot authored
-
- Oct 05, 2018
-
-
Robot Odoo authored
Several fixes closes odoo/odoo#27430
-
Martin Trigaux authored
Fixes odoo/odoo#27321
-
Martin Trigaux authored
Unlike the name suggested, today is expected to be a datetime, not a date object Fixes odoo/odoo#27445
-
- Oct 04, 2018
-
-
Nicolas Lempereur authored
When auth_password_policy is installed, and a field with `password="True"` is in a res.config.settings (eg. google calendar is installed) we could have an error caused by deferred not expected in the res.config.settings _render. Since the RPC is only needed when the password_policy has been been defined, this commit do this removing the error that currently happened. A customization of res.config.settings adding password_meter would still break settings (but it is currently not done) and will be solved in a future fix. closes #27426
-
- Oct 03, 2018
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
ThanhDodeurOdoo authored
Before the fix, routes using binary_content with access_mode and access_token didn't work properly since access_token was compared to the object's access token in all cases. This commit: -prevents the object's access_token check if access_mode is truthy (since access_mode does its own access_token check). -changes check_access_mode so it now returns a boolean instead of a record and is now private. Closes #27401
-
Christophe Simonis authored
-
Pedro M. Baeza authored
- Add a method for generating an image data URI, and expose it in QWeb context - Fix reports, website templates or mail templates with data hardcoded data URIs, to use the helper (Python cases), or the existing kanban_image helper (for JS cases) This will gracefully handle SVG support in addition to classical image formats. Closes #26635
-
Pedro M. Baeza authored
Introduce official support for SVG files in the framework, including the following parts: 1. When client-side SVG images are uploaded, the content is displayed until you save using data URI scheme according RFC 2397 [1]. This scheme requires to specify content format. Using hardcoded "image/png" works for all images types except SVG. Type-sniffing is done using "magic byte" detection via the first base64 encode byte, so that the proper data URI scheme can be used. This should not cause SVG-related security problems as the file is displayed through `<img>` tag, which does not allow SVG scripting [2]. 2. Make /web/image controller compatible with SVG 3. Add support for SVG files for company logo, which uses a dedicated controller. 4. Resizing of SVG files is a no-op, as it makes little sense for a vector-based format. We also want to avoid micro-alterations to the SVG document (in "natural" viewport parameters) as we would store multiple copies of the files in the filestore. 5. Because SVG files are inherently dangerous, upload of SVG files is restricted to administrators, either by blocking it directly before saving it in the database (binary fields with attachment=False), or by neutering them to text/plain mimetype (for binary fields with attachment=True) 6. Add tests for the SVG upload cases and for the non-admin uploads. [1] https://tools.ietf.org/html/rfc2397 [2] https://www.w3.org/wiki/SVG_Security Closes #26635
-
Christophe Simonis authored
-
Xavier Morel authored
On an AccessError, the relevant message is passed as the first arg. But the import error handler would only check for the second arg (if any) then fallback on error.message, which is missing entirely when the issue is raised as an except_orm subclass.
-
Christophe Simonis authored
-
Odoo Translation Bot authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
- Oct 02, 2018
-
-
Mathieu Duckerts-Antoine authored
-
Xavier Morel authored
These blow up rather dramatically if the corresponding modules are installed after auth_password_policy.
-
Xavier Morel authored
Auth can now report errors less trivial than "incorrect password", the wizard should report them instead of just assuming the original password was not correct.
-
Xavier Morel authored
* generic strenght meter widget which can be included in various places * password field, taking over the isPassword special cases strewn throughout the codebase, this should probably become an actual thing in core /cc @ged-odoo, the meter is opt-in as most uses of `field[@password=True]` are passwords & secrets for third-party services or external servers for which a meter would not make sense * separate override of the ChangePassword wizard which isn't a regular view for some reason * direct implementation for signup pages (create user & reset password) Skip/comment/remove existing testing of @password fields: the policy replacement/augmentation needs to make an RPC call and does not support readonly use (because it doesn't seem to be used anywhere so that made sense?); and there currently is no way to augment or override/replace existing tests, so the tests will either fail when auth_password_policy is installed (current situation) or fail when auth_password_policy is not installed (if updated to be compatible with APP).
-
Xavier Morel authored
Hard-checks password length according to configured rule (default: at least 8 characters). Closes #22351
-
Alexandre Kühn authored
Revision on bus refactoring: https://github.com/odoo/odoo/commit/6448420c5dd160470e465dee7729d19d8d5e7bab Before this commit, when a user was disconnected for a very long time, he would receive lots of chat notifications on his next login. Here is an example of weird behaviour with this issue: - User folds and unfolds a chat window 50 times - User disconnects for more than 50 seconds - User reconnects ==> the chat window rapidly folds and unfolds itself 50 times! This issue comes from the fact that after 50 seconds without any longpolling, the web client ignores the last tracked notification and sents the ID `-1` to the server. The web client always provides a notification ID to the server on a `longpolling/poll`. Usually, the server returns all notifications of the user with an ID greater than the provided ID. There is an exception with ID `0`, in which all notifications since the last connection of the user are returned. The cause of the issue is a mismatch of the special notification ID between the server and the web client. For the web client, the ID `-1` is used for not tracking any notification, whereas the server uses the ID `0` for this case. As a result, when the server receives the value `-1`, it returns all notifications having an ID greater than `-1`. In other words, it returns all notifications related to this user, even the ones received long time ago! This commit fixes the issue by enforcing the special notification ID `0` on both the webclient and server. Note that this logic is similar to 11.0: - The webclient uses the ID `-1` most of the time to define 'untracked': https://github.com/odoo/odoo/blob/11.0/addons/bus/static/src/js/bus.js#L154 - However, it passes the ID `0` to the server: https://github.com/odoo/odoo/blob/11.0/addons/bus/static/src/js/bus.js#L193
-
Alexandre Kühn authored
-
Alexandre Kühn authored
This menu mistakenly tells that there is a keyboard shortcut to navigate in the app menu.
-
Alexandre Kühn authored
This reverts commit 05971d00. This menu makes sense in community, therefore we re-enable this menu.
-
qsm-odoo authored
* mail
-
Thibault Delavallée authored
Purpose of this merge is to add activity view on main actions of models inheriting from the activity mixin. Purpose is to help using activities by having access to the summary activity views. This merge is related to task ID 1889413 and closes PR #27381.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated : * survey main menu action; This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated * purchase and RFQ main actions; * specific product actions defined for some menu actions in purchase; This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated : * project all tasks main menu action as tasks coming from project already had the view; This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated : * point_of_sale main menu action; This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated * employee main menu actions; * leave and allocation request main menu actions; * applicant main menu actions; * expense and expense report main menu actions; * contract main menu action; * attendance employee main action; Following @est-odoo advice the Next Activities menu entry in hr_recruitment is removed as there are already a lot of ways of managing activities: using the systray, using activity view present on most actions, ... This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated : * fleet vehicle and contract main menu actions; Some menu entries are also renamed to ensure coherence in all menu entries that all use vehicles, with an 's'. This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated * CRM and Sale/CRM main menus: pipeline, leads, quotations; * Sales main menus: quotations, orders, to invoice/to upsell, products; * Website Sale: quotations, orders, to invoice, abandoned; This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated * main invoice menu actions; * product actions specific to account related to main menu action; This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated * product variant main menu action; * product main actions used in various apps; This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated : * note main menu action This commit is linked to task ID 1889413.
-
Thibault Delavallée authored
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated * main partner menu action (Customers); * membership partner main menu action; * customers / vendors main menu action used in various other apps; This commit is linked to task ID 1889413.
-