- Nov 22, 2020
-
-
Odoo Translation Bot authored
-
- Nov 17, 2020
-
-
Didier (did) authored
Before this commit, when a user click on the author avatar inside the message list, it trigger the o-clicked for the message. task-2341603 closes odoo/odoo#61400 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com> Co-authored-by:
Sébastien Theys <seb@odoo.com>
-
- Nov 20, 2020
-
-
Nicolas Galler authored
Behavior prior to this commit: In the following scenario: - order of 10 widgets - delivery using an entire package of 15 widgets (by adding the package under the "Packages" list and checking the "Done" checkbox) The delivery, when validated, does not update the delivered quantity on the sales order, and generates a warning about not shipping enough product. We expect instead the sales order to be updated with the actual quantity that was shipped (i.e., 15), and a warning about shipping too many products. Additionally, when adding the package, the picking reverts to a "Draft" state and we have to click "Mark as Todo" again. Behavior after the commit: When adding one (or more) entire package in the packages list, and marking them as Done, their entire quantity will be marked as Delivered on the Sales Order, and no warning about not shipping enough product will be shown. Of note, if the package also contains products that are not on the SO, they will be marked as shipped as well (in that case the picking will indeed revert to draft since we will have added a new product). However they will not be automatically added to the SO. Technical details: When adding a package under the picking it needs to, eventually, reflect on a stock move. Prior to the commit, the system would add a new stock move. This had 2 problems: - the generated move did not carry back to the SO, - it would flip the picking back to draft (under certain circumstances it was possible to circumvent that and have a package level, and a move line, that was not tied to a stock move and thus would automatically reattach itself when the picking was validated, and sort of work, but it was more of a happy accident and relying on the steps being followed in a very precise order). With this commit, we do not generate the stock move as soon as the package is added. Instead, that is done when the picking is marked as done, either by relating it to an existing stock move, or by generating a new one at this time. opw-2367893 closes odoo/odoo#62108 X-original-commit: 173bfe6764a554d601d2c7edac2a4c79e2faaa83 Signed-off-by:
Nicolas Galler <ngaller@users.noreply.github.com>
-
Xavier Dubuc authored
task-2388702 closes odoo/odoo#61993 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
- Nov 17, 2020
-
-
qsm-odoo authored
Before this commit, tips were bouncing from 6px from the anchor to 0px from the anchor. Now they bounce from 3px from the anchor to 3px inside the anchor. closes odoo/odoo#61846 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Nov 20, 2020
-
-
Nicolas Martinelli authored
1. Create a storable product 2. Set the category: Costing - Method: First In First Out (FIFO) - Inventory Valuation: Automated - Price Difference Account: Price different accounts. 3. Create a vendor bill with the product and the quantity set as 0, and set a tax 4. Post the vendor Bill A ZeroDivision error is raised. opw-2375464 closes odoo/odoo#62104 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Jeremy Kersten authored
Meanwhile another fix to make these filter more compliant in multi website. For now, if you delete website 1 (and filter by cascade) and create website 2 and try to drop a caroussel product, it will crash because no filter exists. closes odoo/odoo#62097 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Jeremy Kersten authored
Before this commit, we write on each record the value, whatever the current value. Now we check if it is necessary to avoid useless fork. The first change on header was slowly.
-
Jeremy Kersten authored
Code has been optimized to make only one request in the past (5da1b96f), but all modules that replace in the past the groups='base.group_system' by groups='website.group_website_designer' has not been adapted. By consequence, now only a user with group 'system & designer' can see the 'quick create' button. We remove the optimization in stable to make the fix with a minimal diff, but optimization will be done in master, without forget to adapts all modules this time. task-feedback
-
Samuel Degueldre authored
Previously the default message when sharing a blog article was hardcoded, meaning it was always in English and not translatable, this commit fixes that. Closes https://github.com/odoo/odoo/issues/31173 task-2369420 closes odoo/odoo#62070 X-original-commit: 7e7a1edf702e070cf3f690946e5cda90f21a88d8 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
jev-odoo authored
XML loading always raises a ParseError, however when an XML loading error is triggered from an HTTP request (e.g. a button) the final ParseError logged & shown to the user would not be properly chained to its ancestor, leading the original cause to be lost and issues being much harder to diagnose. This cause is lost in _handle_exception where we duplicate the exception in order to chain it correctly, the __cause__ of the source exception was not properly copied over, and would thus break the chain. The fix also requires explicitly chaining the ParseError to its cause, this should not be necessary but the cause is also lost if this is missing, it is not clear why. opw-2381776 closes odoo/odoo#61914 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Nov 18, 2020
-
-
bit-odoo authored
Before this commit: New message from "messaging menu -> chat window" or "new chat" in discuss, should not suggest partners that don't have a dedicated user. After this commit: It will not suggest partners that don't have a dedicated user. Task-2363463 closes odoo/odoo#61614 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
- Nov 20, 2020
-
-
IEL authored
STEPS: * open website page with a form (e.g. /contactus) * click edit * slow down connection speed * click fast between form input lines or change order of the lines BEFORE: * 7 svg files are requested every click * get_authorized_fields is called every click * random error "'classList' of undefined" in SelectUserValueWidget::close * random similar errors when a method is called before initialization AFTER: * svg and get_authorized_fields are requested once * random errors are no reproduced or it's hard to do it * performance of switching between inputs doesn't depend on connection speed (though, still not instant) WHY: * about changing in SelectUserValueWidget::close: posible reason why this.menuTogglerEl may be undefined is because method start is async * the other updates just implement caching --- opw-2368928 closes odoo/odoo#61598 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Ivan Yelizariev authored
STEPS: 1/ Fresh copy of base runbot 14.0 2/ Change country on the company to 'Mexico' 3/ Install apps Sales and Contacts 4/ Login as 'Demo' and try to access Contacts BEFORE: Access Error AFTER: No errors WHY: * since Odoo 14 only admin can read ir.ui.view: https://github.com/odoo/odoo/commit/ccc98e01691b88c2da9c484c0e6de235b9d18548 * https://github.com/odoo/odoo/pull/60329 --- opw-2378336 closes odoo/odoo#62103 Signed-off-by:
Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
-
- Nov 18, 2020
-
-
Rémy Voet (ryv) authored
Step to reproduce: - Create a subcontracting BoM by partner A, for a tracked product B (by serial or lots) - Create a incoming transfer coming from A and mark as todo. - Fill the move with move lines with lot + quantity. - It is impossible to validate the transfer, "You need to supply lot..." Also at the creation of the picking a warning popover indicate that the previous operation (the hidden MO) is set after the transfer. These issues comes from the refactor of mrp for v14 and the part of subcontracting wasn't complete obviously. Fixes done: - Rewrite the code of the `_action_done` for subcontracting. It is for the case of tracked finished product without any tracked component, there wasn't any code to manage that. Now manage it by backorder MO feature. Fix the main bug - Set finished_date_planned before the transfer to avoid the alert popover. - Avoid to write activity in channel about the hidden MO in case of cancelling. - Fix `action_record_components` to manage multiple subcontracting products with tracked component. - Remove the `priority` field from the wizard MO (in case of tracked product. Also the wizard is not really a wizard, just a weird hybrid MO form) PR: odoo/odoo#61606 task-2357115 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Nov 19, 2020
-
-
Anh Thao Pham (pta) authored
- Install Invoicing - Go to Invoicing > Configuration > Taxes - Create a Tax 0% with its own tax group - Go to Invoicing > Customers > Invoices - Create an Invoice with a line having a normal Tax and several lines with Tax 0% - Confirm and print Invoice On the Subtotal section of the printed invoice, for the label of the Tax Group of Tax 0%, only the amount of the first line having this tax is shown. (i.e. "Tax 0% on $ XXX", where XXX should be the sum of all lines on which Tax 0% is applied) opw-2381051 closes odoo/odoo#61856 Signed-off-by:
Anh Thao PHAM <kitan191@users.noreply.github.com>
-
- Nov 20, 2020
-
-
jev-odoo authored
Before this fix, trying to authenticate via xml-rpc call from PHP following the documentation at odoo.com/documentation/14.0/webservices/odoo.html#logging-in raised an error: > $uid = $common->authenticate($db, $username, $password, array()); TypeError: 'list' object is not a mapping Because PHP doesn't have separate array and mapping types, the XML-RPC encoder disambiguates based on the existence of key => value pairs, such disambiguation yields an empty xmlrpc array for an empty PHP array, which is unexpected on the Python side. Relax the check on the Python side: * fixing this on the client side requires adding arbitrary and meaningless key => value to the empty array to force the correct disambiguation which is ugly and weird * the example code has been there for a long time, so there's probably lots of such PHP code in the wild opw-2388141 closes odoo/odoo#62077 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Josean Soroa authored
Correctly format the `product_uom_qty` with the appropriate widget. opw-2382517 closes odoo/odoo#62078 X-original-commit: 042298f8 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Paul Morelle authored
When the amount of mail messages is big enough (about 1500?), the recursion goes deeper and deeper, until the Javascript limit raises an infinite recursion error. This commit fixes the issue by avoiding to run an inner _flushUpdateCycle with the update if the change is not needed, so the second time that it is reached it does not start a new update, which would have run another flush update cycle. closes odoo/odoo#62076 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Didier (did) authored
Web editor hard code the width inside the image html. This `max-width` constraint the image inside the chatter and avoid unwanted horizontal scrollbar. task-2389432 closes odoo/odoo#62073 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
- Nov 16, 2020
-
-
Jeremy Kersten authored
resize_class can be missing from the properties opw-2379828 closes odoo/odoo#61786 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Nov 20, 2020
-
-
Nicolas Galler authored
Behavior prior to the commit: - the accept link in the reminder email for a meeting has a parameter `event_id`, instead of `id`, which causes an error 500 when the user tries to accept the meeting Behavior after the commit: - the accept link uses the correct `id` parameter opw-2366173 closes odoo/odoo#61983 Signed-off-by:
Nicolas Galler <ngaller@users.noreply.github.com>
-
- Nov 18, 2020
-
-
Arnaud Baes authored
Without write permissions, Time Off Managers are unable to approve nor refuse leave requests. It seems there was a mismatch with `hr_holidays.group_hr_holidays_user` as "Approvers" and actual users at some point. Bug reported via p/feedback by CMO and LEM after v14.0 migration. closes odoo/odoo#61943 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
Rémy Voet (ryv) authored
`do_unreserve` is a action that can be made in the tree view of `stock.picking` but it was very slow and not batched. For 80 picking with -/+ 10 `stock.move.line` related each (calculate on 5 sample of 80 pickings): It took 17947 +- 2741 SQL requests, 7.37 +- 1.09 sec of SQL and 8.13 +- 1.31 sec of python execution (+- 15.5 sec in total) Make some change to speed up the unreservation of multiple picking/move: - Batch the call of `_do_unreserve` of move in picking - Use OrderedSet instead of RecordSet to reduce the complexity of `_do_unreserve`. (Become significant when len(recordset) > 1000) - Add `.with_prefetch()` in the unlink of stock move line to patch issue with prefetching + unlink + cache. - Batch `_recompute_state` - Also batch the `do_unreserve` of MO Result after change in the same samples: It take now 1438 +- 20 SQL requests, 0.45 +- 0.02 sec of SQL and 0.68 +- 0.02 sec of python execution (+- 1.13 sec in total, 13 times faster). Note that the gain increase proportionally. task-2383111 closes odoo/odoo#61879 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Nov 20, 2020
-
-
Anh Thao Pham (pta) authored
This is a backport of commit https://github.com/odoo/odoo/commit/b48111635b8f273f5a8b26960b110468908ed3c4 from master to 14.0 Currently, when reinvoicing an expense, a SOL with the expense product is added to the selected SO, but the 'quantity' field remains at 0. But when adding expense product to SO, we need to change the sales order price, because it will be charged to the customer in the end. So in this commit, we set the quantity on the SOL equal to the quantity set on the expense. opw-2377511 closes odoo/odoo#62057 Signed-off-by:
Anh Thao PHAM <kitan191@users.noreply.github.com>
-
- Nov 19, 2020
-
-
Paul Morelle authored
The prefetching engine wants to prefetch all the registrations to all the events of all the schedulers, which may make a lot of data. If the autocommit is on, then all this prefetched data is discarded at each loop. This commit limits the prefetching to each scheduler, so that we avoid prefetching the data unnecessarily. closes odoo/odoo#62051 X-original-commit: 904a46f2 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com> Signed-off-by:
Paul Morelle <madprog@users.noreply.github.com>
-
Achraf (abz) authored
What are the steps to reproduce your issue ? 1. Create two companies on a multi-company database without Website installed. For this use case, install Purchase 2. Configure two distinct logos per company 3. Create a Purchase Order with the second company. 4. Send PO from second company over as email. 5. Check recipient email (or mailhog for Runbot) for the email 6. Find that while the PDF report reflects second company's logo, the header navigation bar in the client email when clicking "View Request for Quotation" reflects company_id=1's logo. What is currently happening ? The displayed logo is not the correct one. What are you expecting to happen ? Display the right logo. Why is this happening ? Because when rendering the view. The value of 'res_company' declared in the context has as value the id of the default company of the user How to fix the bug ? Specify the current company. opw-2380274 closes odoo/odoo#62013 X-original-commit: 5eb40d22 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
Achraf <abz-odoo@users.noreply.github.com>
-
Achraf (abz) authored
What are the steps to reproduce your issue ? 1. Install 'stock' 2. Create 'ProductA' with 'Tracking By Lots' 3. Create some 'Lots/Serial Numbers', for example 'CodeA0 and 'CodeA1' 4. Go to 'Reporting/Inventory Report' 5. Remove 'Product > Location' from the search bar. 6. Click 'Create' and select 'ProductA' with 'WH/Stock' Location What is currently happening ? When you set 'Lot/Serial Number', the available lots to choose are not limited to the selected product only. What are you expecting to happen ? Show only lots of the selected product. Why is this happening ? The domain contained no condition which depended on the product. How to fix the bug ? Addition of a condition that depends on the product. opw-238143 closes odoo/odoo#62040 X-original-commit: 3b33f1d3 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Sébastien Theys authored
Indeed the non-pinned thread are not displayed in the menu and should not be taken into account for its counter either. task-2389824 closes odoo/odoo#62033 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
wan authored
opw-2379384 opw-2381830 opw-2381936 closes odoo/odoo#61992 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
Ivan Yelizariev authored
STEPS: * install module "account" * activate at least one additional languages * go to Settings as set value to "Default Terms & Conditions" * click Save * again at Settings make any changes in any field * click Save BEFORE: * while page is reloading you see alert "Please update translations of: Terms & Conditions" * once page is reloaded the alert is gone * the alert doesn't depend on weither translations are done or not AFTER: no annoying alerts WHY: * in res.config.settings any field with default values (i.e. almost all fields) are marked as changed https://github.com/odoo/odoo/blob/d652dbb9655d98b4121ac685e6444bbf7e303292/odoo/addons/base/models/res_config.py#L493 https://github.com/odoo/odoo/blob/93a2e85ae7b11f9a390f40f74e6d78e1ec876fc3/addons/web/static/src/js/views/basic/basic_model.js#L254 * the idea of alert is suggesting to translate just changed fields https://github.com/odoo/odoo/blob/93a2e85ae7b11f9a390f40f74e6d78e1ec876fc3/addons/web/static/src/js/views/form/form_renderer.js#L136-L140 * saving settings always leads to reloading https://github.com/odoo/odoo/blob/93a2e85ae7b11f9a390f40f74e6d78e1ec876fc3/odoo/addons/base/models/res_config.py#L639-L647 * So, the alert cannot work for Settings page. There is no better option for stable branch than just disabling it --- opw-2346644 closes odoo/odoo#62022 X-original-commit: 5c685078 Signed-off-by:
Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
-
Nicolas Martinelli authored
- Create a product with price 2335.5, no tax - Start a POS session - Add the product, set a discount of 3% on the line => total is 2665.44 - Validate and close the session - Got to Point of Sale / Reporting / Orders, open the pivot view The Total Price of the order is 2665.43. It happens because the server returns a value of 2665.435, which is displayed in the pivot view as 2665.43. We round the Total Price based on the company currency decimal precision. Indeed, all amounts are converted in this currency in the report. opw-2369023 closes odoo/odoo#62021 X-original-commit: 178d5c87 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Adrien Widart authored
If a job position has a default recruiter, when applying for this job, the application's recruiter is not the correct one. To reproduce the error: (Need hr_recruitment,website_hr_recruitment) 1. Go to Recruitment > Configuration > Job Positions 2. Create a new one - Fill in the Recruiter field 3. Save it 4. Click on "Go to Website" 5. Publish the job position - Top bar: click on "Unpublished" 6. Log out 7. Go back on the job position page 8. Apply 9. Log in 10. Open the Recruitment module 11. Check the applications for the job position => The application is created, but the associated recruiter is not the one previously set (step 2 above). This fix makes sure an application has the correct recruiter when the associated job position recruiter is defined. OPW-2387888 closes odoo/odoo#61979 Signed-off-by:
adwid <adwid@users.noreply.github.com>
-
Nicolas Martinelli authored
- Create a product P with a MTO Reordering Rule (Buy Route) - Add a supplier to P with a specific vendor code - Create a SO for 1 unit of P, validate A PO is created for the supplier but without using the vendor code. It happens because the vendor code is overridden by the product description. To avoid losing information and redundancy, we add the line description only if different from the product name. opw-2383418 closes odoo/odoo#61922 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Adrien Widart authored
A user without admin access cannot add any views to his dashboard To reproduce the error: 1. Connect using an account without admin rights 2. Go to CRM (for instance) 3. Favorites > Add to my dashboard 4. Set name & Save => An AccessError is raised A user should be able to add some views to his dashboard. OPW-2382713 closes odoo/odoo#62019 Signed-off-by:
adwid <adwid@users.noreply.github.com>
-
Mohammed Shekha authored
before this commit: portal_rating_composer.js do not return anything, as it does not return anything extending RatingPopupComposer is not possible, as RatingPopupComposer loads template using xmlDependencies so inherting template 'website_rating.PopupComposer' is also not possible because if some other module wants to extend 'website_rating.PopupComposer' template then it has to add extended template by extending 'RatingPopupComposer' widget. with this commit: RatingPopupComposer is returned in portal_rating_composer.js closes odoo/odoo#62016 X-original-commit: 6514bb70 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Thibault Delavallée authored
Website event track module is an advanced event module that is required notably in some sub modules: live, quizzes, exhibitors. When unchecking Schedule & Tracks in event settings, submodules checkboxes are hidden. It means that currently you may uncheck module_website_event_track while still keeping sub modules (_track_live, _track_quiz, _track_exhibitor) checked. When saving, modules are uninstalled, then installed again if one of sub module is still checked. In this commit we add an onchange so that unchecking track also unchecks all its sub modules to effectively remove them all. Task ID-2389569 closes odoo/odoo#61995 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Julien Castiaux authored
There is a user whose email login is "joe@examplé.com", notice the latin "é" in the domain. This domain is a valid IDNA-2008 domain but the smtplib of python is incompatible with such domain and raises a UnicodeError because the character is not ascii. Note the removed comment about bytestring is a leftover of a dark python2 age and is no more valid. Closes #61972 closes odoo/odoo#61994 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
- Nov 06, 2020
-
-
Aurélien Warnon authored
This commit changes the default crm alias prefix from 'info' to 'contact'. As the alias of the default sales team is configured to 'info', also having 'info' for the "crm_alias_prefix" setting was leading to an alias collision. This change allows an easier configuration by the end user and avoids confusion when first playing with your CRM settings. Task 2373095 closes odoo/odoo#61025 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Oct 30, 2020
-
-
Aurélien Warnon authored
This commit slightly changes the crm tour by changing the position of a tip bubble. During the quick creation (kanban) of a record, the tip text was placed on top of the m2o selection proposals, making them hard to read / click. We simply moved the tip text to the top of the selection instead. Task 2373095
-