- Jul 04, 2019
-
-
Jeremy Kersten authored
Before this commit, using google geoloc, we only provide a string as address withtout more information. Now by defaut, we force the country as components: https://developers.google.com/maps/documentation/geocoding/intro#geocoding Related to task-2030886 **setup:** ```python url = "https://maps.googleapis.com/maps/api/geocode/json " ``` **before:** ```python params = {'address': 'Georgia', 'key': apikey} requests.get(url, params).json() ``` > ==> Return coordinate of "Georgia, United States" > What is completely wrong > **after:** ```python params = {'address': 'Georgia', 'components':'country:Georgia', 'key': apikey} requests.get(url, params).json() ``` > ==> Return Nothing > What is strange but less wrong than US > ```python params = {'address': 'Belgium', 'components':'country:Belgium', 'key': apikey} requests.get(url, params).json() ``` > ==> Return coordinate of Belgium closes odoo/odoo#34582 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
qsm-odoo authored
Before this commit, 50% of the time, the design of the editor in the website appeared broken. This was because the two editor assets (the web_editor one and the website one) are lazy loaded... but their load order was not deterministic. The bug was introduced with the new editor merged with https://github.com/odoo/odoo/pull/29775 . In fact the lazy loading system introduced by the `loadLibs` function of the ajax module was designed to allow sequential and/or parallel loading of JS files... but not of assets bundles (for CSS it is always forced to parallel because only the DOM order matters anyway). This commit shares the code to allow sequential and/or parallel loading of assets bundles. It also forces the asset bundle resources to be loaded after css and js resources. closes odoo/odoo#34544 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Richard Mathot authored
This block has been lost in 1f2766a9 We bring it back to life. opw-2031797 closes odoo/odoo#34574 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Jul 02, 2019
-
-
Xavier Morel authored
The point was to fix files attachments without an extension, potentially appending to existing extensions was not a smart idea. See #34299, 5eb15c01
-
- Jul 01, 2019
-
-
Yannick Tivisse authored
closes odoo/odoo#34483 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Jun 28, 2019
-
-
Pierre Masereel authored
Since changes made on 'product.product' model in rev: 30e4d89a the domain is not represented as a string, but as a function, and that leads to error as the javascript function is sent to the server instead of a string representing a domain. So we check the type of domain to see if we have to evaluate a function or send the domain as a string closes odoo/odoo#34453 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
Robot Odoo authored
See sub commits for more details. Linked to task 2005840 closes odoo/odoo#34220 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Thibault Delavallée authored
This fix correctly displayed motivational of next rank to achieve depending on current karma. Indeed description_motivational field is not the motivational to reach next rank but to reach the current rank, taken from previous rank point of view. That way a given rank is configured by modifying only 1 data. When not having any karma points (newly created user) the next rank is computed as being the first available rank. Motivational phrases and badges are updated accordingly. This commit partially reverts 489c8623. Result * new user with no karma: next rank is the first rank; * user with karma and next rank: as currently; * user being at final rank: next rank is just current rank with a 100% circle; Linked to task 2005840 Related to PR #34220
-
Thibault Delavallée authored
Contains some small fixes * correctly order leaderboard by descending karma, not creation date; * top 3 users displayed in footer banner should be published, otherwise displayed images do not match the top 3 displayed in the page displayed when clicking; * correctly say Leaderboard is an overall leaderboard, not only limited to the current week; Linked to task 2005840 Related to PR #34220
-
Thibault Delavallée authored
As user is a loop variable we can directly use its index instead of a rank position that is not always correctly computed when not being logged due to access rights issues. Linked to task 2005840 Related to PR #34220
-
mgh-odoo authored
After this commit https://github.com/odoo/odoo/commit/ff870099c588e56 some of the events are left in website_forum, that caused some buttons to be inactive. In order to fix that events moved to website_profile. Note: code is moved as it is. Cleaning class / namespace will be done in master to avoid issues due to stable version. Related to task 2006045 closes odoo/odoo#34138 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Yannick Tivisse authored
-
- Jun 27, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
In case of failure at token creation, raise a proper UserError instead of a generic traceback. opw-2025723 closes odoo/odoo#34420 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
- Enable general discounts for POS - Create a POS session - Add a product - Create a general discount of 10% - Change the customer The discount is reset to the product price. When changing the customer, the prices are reset: https://github.com/odoo/odoo/blob/3b1699e02d4483913159681bf7e10839e6493244/addons/point_of_sale/static/src/js/screens.js#L1251 In the case of a global discount, the price is therefore reset to the product price in: https://github.com/odoo/odoo/blob/3b1699e02d4483913159681bf7e10839e6493244/addons/point_of_sale/static/src/js/models.js#L2304 To avoid this, we set the price as manually set. Conceptually, this is indeed the case since we manually chose the percentage, therefore the price. opw-2009761 closes odoo/odoo#34416 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
Avoid crash at currency conversion when no company is set on the SO opw-2009044 closes odoo/odoo#34408 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Priyanka Kakadiya authored
It's currently possible for binary downloads to be missing an extension entirely. Generate an extension from the mimetype and use that. Also ensure the existing extension (if any) matches the mimetype. Warning: this may require adding new mimetype/extensions pairs to the local mimetype database similar to f413d155. Also fix missing or incorrect filenames on records without a filename field: in some Odoo versions the client would send a filename of "null", resulting in a download of e.g. "null.pdf" instead of the attachment or inferred name. Task 2025716 closes odoo/odoo#34299 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Jun 26, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
- Make a SO with a product that have a carriage return in its description - Export FEC report The CSV contains new lines and is not correctly formatted. opw-2026861 closes odoo/odoo#34385 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
Backport of: a3519638 fe9e7d47 opw-2026861
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
- Install stock module - Activate multi-company and variants - Create a second company - Create a product with 2 variants - Create a picking with the product for both companies - Add an attribute on the product with 2 values - Save An AccessError is raised on `stock.move`. It arises because the field `product_qty` on `stock.move` must be recomputed but is on a record in a different company. The `try` / `except` clause doesn't protect against the recomputation. Indeed, what happens is: - try to unlink in batch => AccessError due to recomputation - try to unlink individually => AccessError due to recomputation - try to write individually => the field couldn't be recomputed before (flagged as dirty), so try again to recompute => AccessError We perform the operation as sudo, and take care of checking the access rights beforehand. opw-2009450 closes odoo/odoo#34369 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Jun 25, 2019
-
-
Bohdan Lisnenko authored
closes odoo/odoo#33858 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com> closes odoo/odoo#34363 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Jun 24, 2019
-
-
Goffin Simon authored
When registering a payment against multiple vendor bills and change the memo, the memo must be populated to all the payments. This behavior has been introduced with the following commit in stable 11.0: c04065ab opw:2024652 closes odoo/odoo#34322 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
Jorge Pinna Puissant authored
Backport from 12.0 to 11.0 (commit: 3cbdfe88) - Have two crm teams with the same team leader, and without team members (team1, team2 as instance). - Create a new lead, add as Salesperson the team leader, and as Sales team the second previously created team (team2). - Save the new lead. Before this commit, when we save the lead, the sales team will change, to set the default sales team for the chosen Salesperson, in this case team1. opw-2005924 closes odoo/odoo#33898 closes odoo/odoo#34327 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
qmo-odoo authored
This commit improves the elearning onboarding on the quizzes If the user is not logged in, a log in button will show up under the quiz If he is logged in but not a member of the course and the course is public, a join button will appear under the quiz If the course needs to be bought, a buy button will appear under the quiz. If the course is on invite only, a message under the quiz will inform the user about it TaskID: 2003986 PR: #33861 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Jun 27, 2019
-
-
sri-odoo authored
task-2025167 closes odoo/odoo#34238 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Jun 23, 2019
-
-
Odoo Translation Bot authored
-
- Jun 21, 2019
-
-
mgh-odoo authored
Currently, while editing user profile from frontend, biography is displayed in textarea despite of being an HTML field. This commit fixes the behavior by providing users with wysiwyg ediotr to update their biography while editing profile from frondend. task-2007731 closes odoo/odoo#34207 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Jun 26, 2019
-
-
Jeremy Kersten authored
Before this commit, it was considered as an error because status was not OK closes odoo/odoo#34377 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
qsm-odoo authored
Commit https://github.com/odoo/odoo/commit/0c6e0d660ea00ad7ee9a3e94c0ac944cdf46565f used flex to properly align address information and the fa icons. The problem is that using flex prevents the parent div to ask for the address information to be center/right aligned. This is the case for the job pages in internal. This commit uses display: inline-block on the top-level element of the address to solve the problem. opw-2000947 closes odoo/odoo#34371 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Jun 24, 2019
-
-
Jeremy Kersten authored
And hide if no time set task-fpreq closes odoo/odoo#34346 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-