- Feb 06, 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 closes odoo/odoo#30887
-
Nans Lefebvre authored
Fine-tuning of commit 50217184 The selection of the cart recovery mail template would fail if there was more than one sale order selected. opw 1921714 closes odoo/odoo#30885
-
Vincent Schippefilt authored
When editing a record, if it cannot be saved (b.e. due to required fields) and the user clicks on save, then on discard Before this fix, the window did nothing (seems like it is unresponsive) After this fix, the user is able to discard the form. task-id: 1937142 closes odoo/odoo#30871
-
qsm-odoo authored
When the edit mode is entered, some elements receive data-editor-message attributes. These were not removed on save which could in some cases make the attributes be saved in the database. For this to happen it would require an `.oe_structure.oe_empty` element to be put *inside* an editable element (instead of being the one which is editable). In that case the `.oe_structure` content would be saved in an inheriting view but the parent view would also be COW'd for no reason because of that attribute. Difficult to say if such a case exist in the current views but as it technically possible and that some of our tests use that configuration, it is worth fixing. Note: this fix was in fact done in the new editor in master and allowed to detect that one of our test was not testing a feature correctly because of that. This will be adapted in a different commit of this PR. closes odoo/odoo#30834
-
Romain Derie authored
Commit https://github.com/odoo/odoo/commit/29075a8e2c734624cec4f6009185616634f70dea was written while there was an incorrect behavior related to multi-website, oe_structure_ID and edit mode in a rare specific case (see the second commit from this PR for detailed explanation https://github.com/odoo/odoo/pull/30834). That rare case was detected in 12.0 since the tour did not work on master with the new editor (that fixed the incorrect behavior). Basically, it was COWing the edited view even if only an oe_structure_ID was touched. Indeed, when saving a specific view in the HTML editor, we should also search for its possible new ID as it could change if we also edited its generic parent. In that case, the view will be copied and then unlinked to preserve inherit order on the new specific tree.
-
Christophe Simonis authored
-
- Feb 05, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Simon Lejeune authored
Previously, it was only possible to make a return in - the location the move was coming - a return location that is child of the parent_location, actually meaning a return location in the warehouse This commit now allows making return in all return location, even one located in another warehouses. closes odoo/odoo#30836
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
- Feb 04, 2019
-
-
Lucas Perais (lpe) authored
Before this commit, the email aliases on hr.jobs did not take into account the department. Hence, when receiving an email for an applicant through an alias, the object applicant was created in the wrong company after this commit, the alias is created with the right values, and the applicant is created in the right company and department OPW 1920085 closes odoo/odoo#30818
-
- Feb 05, 2019
-
-
Lucas Perais (lpe) authored
Go on the crm activity view Have your user operate in another language than en_US Bafore this commit, the activity types were not translated This was because the context was not passed to the function After this commit, the terms are translated OPW 1924232 closes odoo/odoo#30837
-
- Feb 06, 2019
-
-
eLBati authored
Before this commit, an empty block "email" was displayed when not in debug mode Move the group to upper level closes odoo/odoo#30761
-
- Feb 05, 2019
-
-
Nicolas Lempereur authored
This is a regression from: 10f0766b. In it the visual side was solved, but unexpectedly the functional side still worked on unescaped content. Thus visually a @partnèr could be seen as a link, but it was no anymore added as follower. Without change, modified test fails with: mentioned partners are sent to server (expected: [1], result: []) note: change is partial backport of 12.2 e2f20ffa opw-1931247 closes #30846
-
- Feb 04, 2019
-
-
Nicolas Martinelli authored
- Create a SO with 2 lines of the same product (set route as Drop Ship) - At validation, both lines are merged into a single line in the PO As a result, one SO line will be over-delivered, and the other under-delivered. Two lines should be kept in the PO. opw-1928702 closes odoo/odoo#30800
-
Aurélien Warnon authored
Purpose ======= A date field not marked as "mandatory" could not be left blank in the survey. That was caused by the form returning "Invalid date" instead of an empty value when submitting. closes odoo/odoo#30788
-
- Feb 05, 2019
-
-
Rishabh Jadia authored
The purpose is, prevent the linebreak in the phone when using the document layouts 'background' in the footer. opw-1920752 closes odoo/odoo#30812
-
Robot Odoo authored
When creating a leave, we usually check/create activities for the concerned users, this is fine when creating one leave. However it starts to become a problem when trying to create leaves in batch using the by company or by department holiday_type as the number of leaves created in batch can become quite big. Now when we create leaves in batch, we do not check for the activities, which will fasten a lot the creation. Another problem is that when someone defined a leave on the very day you want to create such a request, then it will crash, this can lead to waste of time and resources. Now we raise an error before trying to create the leaves in case of conflict. NB: Tested with +- 320 records, took 20 seconds instead of more than 10 minutes. Task: 1934383 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#30625
-
RomainLibert authored
going from 3X seconds for 320 leaves to 20 seconds for 320 leaves
-
RomainLibert authored
When creating a leave, we usually check/create activities for the concerned users, this is fine when creating one leave. However it starts to become a problem when trying to create leaves in batch using the by company or by department holiday_type as the number of leaves created in batch can become quite big. Now when we create leaves in batch, we do not check for the activities, which will fasten a lot the creation. Another problem is that when someone defined a leave on the very day you want to create such a request, then it will crash, this can lead to waste of time and resources. Now we raise an error before trying to create the leaves in case of conflict. Task: 1934383
-
- Feb 04, 2019
-
-
Julien (juc) Castiaux authored
When uninstalling a module, the messages linked to the records of that module are not deleted leading to ghost messages when reinstalling the module. This is due to the lack of foreign keys in the definition of the chatter making it impossible to cascade delete. opw-1928208 closes odoo/odoo#30798
-
Nans Lefebvre authored
Activate multi-company, deactivate the common contact book. Create a PO P with user U1 in company A. Switch to company B. User U2 in company A tries to send P by email. Rendering of the template fails, because it tries to access object.create_uid, which breaks multi-company record rules. We add a sudo in the template so that it works as intended. opw 1930521 closes odoo/odoo#30789
-
Martin Trigaux authored
Was with a lowercase S while it should be uppercase closes odoo/odoo#30814
-
- Feb 01, 2019
-
-
Nicolas Martinelli authored
- Create a product P with: Costing Method Average Price Inventory Valuation Perpetual (automated) - Create a component C with, costing 10. - Create a BOM for P: 1 Unit of C - Create a MO for P, validate => a journal entry of 10 is created - Modify the BOM for P: 2 Units of C - Create a MO for P, validate => a journal entry of 15 is created The journal entry should be 20. opw-1928342 closes odoo/odoo#30766
-
Raphael Collet authored
closes odoo/odoo#30768
-
Nans Lefebvre authored
The function _compute_parent_rating_percentage_satisfaction used the creation date of the rating to compute the percentage. However when a client give a new rating, it updates the old one. As a result it doesn't give the recent satisfaction percentage, but the satisfaction percentage of recently created tickets. In other words recently angry clients from old projects would not appear. Similarly this method is somewhat reimplemented directly in SQL in the rating route, which happens to be in the project controller. opw 1921486 closes odoo/odoo#30752
-
- Feb 04, 2019
-
-
Pierre Paridans authored
Priority's star, Kanban State's bullet and name fields should be well aligned and take less space (specially for small devices). Related to task 1929034 closes odoo/odoo#28965
-
eLBati authored
closes odoo/odoo#30781
-
Lucas Lefèvre authored
No padding is applied to tab content panels in Community. Also the minimum height selector does not correctly target tabs. Related Enterprise PR: https://github.com/odoo/enterprise/pull/3568/ closes odoo/odoo#30771
-
Sanjay Jamod authored
there was a traceback, when value of amount_total is None closes odoo/odoo#30797
-
Pierre Paridans authored
This commit https://github.com/odoo/odoo/commit/91fb15510ff549e7544f6858f7979b57fae875e7 hasn't been forward ported correclty. Should use .col-6 instead of .col-xs-6 since Bootstrap 4. Related to task 1929034 closes odoo/odoo#30787
-
Laurent Smet authored
-task: 1934494 closes odoo/odoo#30755
-
- Feb 01, 2019
-
-
Alexandre Kühn authored
Revision on https://github.com/odoo/odoo/commit/0d87b1ccea07b952d9079008cfa3cddaf1ccdbee The commit above prevents opening a chat window when we do not have access to messages of the conversation. This may happen when receiving a notification from a document we do not have access rights. However, the changes in the code above has an unintended side-effect of opening a chat window twice when clicking on a channel preview from the systray messaging menu. This happens because when clicking on a preview, it detaches the thread and opens the chat window. Meanwhile, there is a RPC to notify that the chat window is detached, and the new window state of the channel is received on the longpolling. Two concurrent attempts to open a chat window occur at the same. It was working fine before the commit above, because the registering of a newly open chat window was synchronous. This is however no longer the case, because it fetches messages beforehand: it has become a requirement to open a chat window. Since the registering of a newly open chat window is now asynchronous, it was fetching messages and opening the chat window twice. This commit fixes the issue by aborting attempt to open a chat window if it's currently opening a chat window, as this process may take some time due to the `message_fetch` RPC. closes odoo/odoo#30741
-
- Feb 04, 2019
-
-
Nicolas Martinelli authored
LAP was wrong. opw-1936161 closes odoo/odoo#30786
-
- Feb 03, 2019
-
-
Odoo Translation Bot authored
-
- Feb 01, 2019
-
-
Arnold Moyaux authored
Correct domain syntax closes odoo/odoo#30767
-
Jeremy Kersten authored
Before this commit, if the first website in the select was not in your current company, it raises a traceback. Now with filter on your own company, and support empty website selected removing required on related field and using attrs dynamic to make it required closes odoo/odoo#30769
-
Lucas Perais (lpe) authored
Open the customers followup report on a line, click on its contextual menu (the down arrow next to invoice name) click change expected payment date Before this commit, there was a traceback, because the new date was a string which has no strftime function from 03c40e31 we learn that it can either be a string or a date object, as Odoo in v12.0 supports this After this commit, there is no traceback OPW 1933953 OPW 1933979 closes odoo/odoo#30756
-