- Mar 13, 2020
-
-
Olivier Dony authored
Bumps [psutil](https://github.com/giampaolo/psutil) from 5.5.1 to 5.6.6. - [Release notes](https://github.com/giampaolo/psutil/releases) - [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst) - [Commits](https://github.com/giampaolo/psutil/compare/release-5.5.1...release-5.6.6) The only API-incompatible change in 5.6 is the removal of memory_maps() on OSX, which we aren't relying on at this point: https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#560 closes odoo/odoo#47632 Original-signed-off-by:
dependabot[bot] <support@github.com> X-original-commit: a6026a4f Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
Nicolas Lempereur authored
On the website for portal and public users, we only show membership products that are set as website_published. But if you only install eg. website_membership there is no clear way through "Members" > "Configuration" | "Membership Products" to set product as website_published. opw-2202766 closes #47342 closes odoo/odoo#47604 X-original-commit: 37e78b65 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Arnold Moyaux authored
- create product comp1 - create product finished1 - created bom: 1 comp1 for 1 finished1 - activate PBM - 100 units of comp1 in stock - create an MO for 5 - on the pbm, deliver 3 and no backorder - on the mo, check availability, produce 3 - on the pbm, unlock, change delivered qty from 3 to 5 On the mo, the raw move is reserved to 5 units but the 3 units used in the first produce are removed. It happens because editing the quantity or initial on a move will try to reserve the next moves. In order to reserved, _do_unreserve will destroy the stock.move.line and _action_assign (call just after) will recreate them in order to regenerate the reservation. In the process the qty_done on the stock.move.line will be loss. We want to avoid this behavior in mrp so we call _decrease_reserved_quantity from mrp that will keep stock.move.line with quantity done. opw-2206472 closes odoo/odoo#47617 X-original-commit: c6cf5841015c87163f8ea16dd75232e5cb855df6 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
qsb-odoo authored
closes odoo/odoo#47613 X-original-commit: d520050a118cf3f77731cd04b93f17b7c2746f77 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
qsb-odoo authored
X-original-commit: 75eb7ecc62e7a795b535cd978b660a6219e36338
-
qsb-odoo authored
closes odoo/odoo#47609 X-original-commit: d1c22762 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
jvm-odoo authored
Issue - Install CRM and Events - Change Azure Interior Name with a very long string - Click on "1 Events" smart button The view is shifted out of the screen Cause In 12.0, the control panel was separated with 2 div where width = 50% Now they use flex. (they are still 50% width by default) The long name is hidden by a `overflow:hidden` and there is a `text-overflow: ellipsis` to avoid extra-width issue. The problem is that there is a `white-space: no-wrap;` which force an extra width and this cause the shifting. Solution We come back to the 50% even if there is no search view. Breadcrumb will always be on the top left area of the screen which simplifies the code and avoid jumping left to right (taking all the width of the screen) which can be disturbing for users. closes #47063 OPW-2210786 closes odoo/odoo#47603 X-original-commit: 019dc910 Related: odoo/enterprise#9219 Signed-off-by:
Jason Van Malder (jvm) <jvm@odoo.com>
-
Richard Mathot authored
closes odoo/odoo#47601 X-original-commit: 49c9383a Signed-off-by:
Richard Mathot (rim) <rim@openerp.com>
-
Nicolas Lempereur authored
Since 11 June 2018, enabling Billing on your Google Project used for showing static maps is required. So you would follow the only direction of Odoo "Create a Google Project and Get a Key" and nothing would work since you still need to enable billing. With this changeset, we add a link to the Google page explaining maps billing costs, current free usage tier and so on. And on this page the "Get started" button will enable billing if needed. There is another page with deeper explanation but it is very technical and currently only available in english: https://developers.google.com/maps/gmp-get-started note: also improve text of has_google_maps option opw-2210346 closes #47227 closes odoo/odoo#47599 X-original-commit: 6035bba8b679620dcbfc7ba620aafa13009ff616 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Odoo's Mergebot authored
Refactoring of the control panel with the Owl framework. The MVC structure of the control panel has been changed to a 'component <-> model' relationship. As such: - Removed the old control panel: view/model/controller/renderer - Created a new Owl Component (ControlPanel) - Created a new class: the Model (an Owl Store did not fit here) and a newly designed ControlPanelModel extending it Refactored all inner subcomponents, including: - Pager - ActionMenus (peviously SideBar) - Filter menu > Custom filter item - Group by menu > Custom group by item > Removal of groupby_menu_mixin (and refactored graph controller in sibling commit) - Time range menu - Favorite menu > Custom favorite item > Moved the favorite menu registry to the favorite_menu file - Search bar > Removed and splitted auto-completion dropdown logic between the new SearchBar Component (descriptions) and to the new ControlPanelModel (domains). The templates (all in web/base.xml) have been adapted to the new standards. Most of the DOM structure remains unchanged with some occasional improvements (replace hiding with not rendering, removed pointless wrapper divs, etc.). Task 2196029 closes odoo/odoo#41268 Related: odoo/enterprise#7108 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Co-authored-by:
Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by:
Julien Mougenot <jum@odoo.com>
-
Julien Mougenot authored
Use of the new control panel helpers to increase consistency and change the assertions according to the new DOM/behaviour (e.g. components removed instead of turning invisible). Part of task 2196029 Co-authored-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Julien Mougenot authored
Use of the new helpers in control panel (and subcomponents) tests and addition of new tests. Part of task 2196029 Co-authored-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Julien Mougenot authored
Adaptation of the code throughout all modules to properly instantiate the newly refactored control panel and update it accordingly. Part of task 2196029 Co-authored-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Julien Mougenot authored
Some web actions/controllers/viewsl have been adapted to properly instantiate the newly refactored control panel and update it accordingly. We needed to adapt the starting mechanism of actions and controllers to ensure that the control panel instantiation did not delay the loading of any widget. Part of task 2196029 Co-authored-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Julien Mougenot authored
Refactoring of the control panel with the Owl framework. The MVC structure of the control panel has been changed to a 'component <-> model' relationship. As such: - Removed the old control panel: view/model/controller/renderer - Created a new Owl Component (ControlPanel) - Created a new class: the Model (an Owl Store did not fit here) and a newly designed ControlPanelModel extending it Refactored all inner subcomponents, including: - Pager - ActionMenus (peviously SideBar) - Filter menu > Custom filter item - Group by menu > Custom group by item > Removal of groupby_menu_mixin (and refactored graph controller in sibling commit) - Time range menu - Favorite menu > Custom favorite item > Moved the favorite menu registry to the favorite_menu file - Search bar > Removed and splitted auto-completion dropdown logic between the new SearchBar Component (descriptions) and to the new ControlPanelModel (domains). The templates (all in web/base.xml) have been adapted to the new standards. Most of the DOM structure remains unchanged with some occasional improvements (replace hiding with not rendering, removed pointless wrapper divs, etc.). Part of task 2196029 Co-authored-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Hemali Bhimani authored
Currently on the portal, when a quotation has a limited validity period, it is expried as "This offers exprires in" Xdays but X is computed always with a additional day and its show "expries in 0 days" so after this commit it shows the expiry date (like This offers expires on 20 december 2020) on portal view instead of X duration. closes odoo/odoo#46649 Task: 2186428 Closes: #46649 Related: odoo/upgrade#874 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
Julien Mougenot authored
1. Test utils helpers adapted to properly instantiate the new Owl control panel 2. New file 'test_utils_control_panel' to create a control panel and use helpers 3. New helper: createComponent (creates a generic component, see jsdoc) 4. Use of the new helpers in the current tests (more in sibling commits) 5. Helper 'addMockEnvironment' is now asynchronous 6. Owl config mode set to 'dev' in test suite (props validation) Part of task 2196029 Co-authored-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Julien Mougenot authored
Now that mobile is not supported anymore in community, the mobile layout of the control panel has been entirely moved to enterprise. This caused some conflicts with the community mobile test suite (which does not make sense anyway). The failing tests and related style sheets have been moved as well. Part of task 2196029 Co-authored-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Julien Mougenot authored
There are situations where we don't want clicks to be detected behind an opened dialog: for example, when a dialog is opened by a dropdown, we may want to keep the dropdown open while we interact with the dialog. There is now an option (default: true) to stop clicks propagation when they arrive at the dialog container.
-
Julien Mougenot authored
General cleaning of some helpers and generic files. The idea is that they are less likely to be entirely re-written in the near future so this is a way to keep the code clean, readable and compliant to the current standards. Changes include: - Use of async/await when possible - Use of const/let instead of var - Removal of underscore.js - Use of native JS instead of jQuery when possible The logic of the affected code remains the same.
-
Julien Mougenot authored
The purpose of this commit is to correctly indent and order some generic files. There is strictly no change in the code logic.
-
- Mar 11, 2020
-
-
Xavier-Do authored
Before this, the master version is the next major version without taking intermediate saas versions into account. Depending on the point of view, one or other choice can make more sense. Anyway, master is always closer to next saas than next release. Using next major release can be problematic from a technical reason, mainly for upgrade scripts A simple exemple is to write upgrade scripts for master. The script version will be something like 13.3.1.2 since next saas is saas 13.3 and module version 1.2. The problem here is that installing a database in master will have module versions setted to 14.0.1.2 since release.py indicates that version is 14.0, making it impossible to test an incremental version script 13.3.1.3 in master (will never be executed, 13.3.1.3 < 14.0.1.2) Another exemple is when testing migrations on a not-rebased branch. Hypotetically if all upgrade scripts are linked to a specific version of a module (module version is incremented each time a upgrade script is added), someone using an old version of the master won't have the script 13.3.1.3 executed if current module version is 1.2. (which is not true now since module version will be considered to be 14.0.1.2 (> 13.3.1.2). closes odoo/odoo#47281 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
- Mar 13, 2020
-
-
yhu-odoo authored
PURPOSE Keep consistent behavior of the stat buttons and the different stock reports when archiving a product SPECIFICATION Currently, you can archive a product but the behavior of the different stock reports, stat buttons isn't coherent afterwards. Here are the different behaviors that should be improved: 1.Keep quantity on hand and forecasted quantity visible (in the stat button + when opening it) 2.Automatically (un)archive RR and BOM if the product is (un)archived 3.Valuation report: show the archived products without the "archived" filter (behaves already this way in the inventory and forecast reports) 4.When a product has been archived and still has quantity in stock, include it in inventory adjustments for which counted quantity = default to stock on hand (dont do so for archived exhausted products). Also, revert #47478 since we don't have active field. LINKS Task 2178269 PR #45586 Fixes #41634 Related: odoo/upgrade#811 Related: odoo/enterprise#8513 Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-
Jorge Pinna Puissant authored
The function get_inheriting_views_arch, retrieves the architecture of views that inherit from the given view. In the case of the module init is currently in process only views from modules whose code is already loaded are taken into account. Before this commit, the function didn't process views that has been copied (copy on write, web editor, customize show, manual copy, ...), this raise an error when trying to install a module. For example, install module website_sale, copy on write the view 'Main layout', install module website_sale_wishlist. Now, views that has been copied are also processed. opw-2181968 closes odoo/odoo#47590 X-original-commit: d5a2890b30f869c9b4cf7aafed0e05aff9440360 Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com> Co-authored-by:
Nicolas Lempereur <nle@odoo.com>
-
Paul Morelle authored
MailThread._mail_search_on_* was obviously never called with an extra_domain yet, or it would have raised an exception: expression.AND expects only one argument, with the list of expressions to AND, and here we were passing them as *args. closes odoo/odoo#47585 X-original-commit: b20c5350 Signed-off-by:
Paul Morelle <madprog@users.noreply.github.com>
-
Joseph Caburnay authored
This reverts commit d6b85430. The reverted commit introduced issues in patching class methods. Introducing getters in the patch function is not actually compatible with the original method patching. Test for patch method is also introduced to guard patch from future invalid modification that happened. A more robust way of patching classes is now being developed. closes odoo/odoo#47557 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
jvm-odoo authored
Issue - Install purchase_product_matrix, Inventory - Create a (storable) Product P with default_code e.g. VOB2A with a vendor V who uses a product_code e.g. VOB2a - Create a PO/RFQ for vendor V - Add a product, search "vob2" (copy/paste) Infinite loop Cause purchase_product_matrix replace purchase.order_line.product.product by product.template so the name_search is different and the product.template's name_search loop doesn't support the case where you have default_code == product_code Solution Check if the product's name_search returned a product containing product_template_ids that we did not wanted (as mentionned in the domain). If yes, it means that we will have an infinite loop so we should break. Additional note: the issue could be in versions < 13 but purchase_product_matrix is only in 13.0 and this is not a very common case. OPW-2193005 closes odoo/odoo#47576 X-original-commit: 9d5d80f7 Signed-off-by:
Jason Van Malder (jvm) <jvm@odoo.com>
-
Lucas Lefèvre authored
With a user with only Fleet Administrator rights. Assign an internal user as the driver of a vehicle (other than the current user) => access error, you cannot write on model `res.user`. Writing on a partner linked to an internal user requires write access to this user. closes odoo/odoo#47572 X-original-commit: a693b368 Signed-off-by:
lul-odoo <LucasLefevre@users.noreply.github.com>
-
Anh Thao Pham (pta) authored
closes odoo/odoo#46656 Related: odoo/enterprise#8950 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
Lucas Lefèvre authored
An HR user (without any rights on contracts) could not open an employee form view since it needs the `first_contract_date` field which needs contracts access rights. closes odoo/odoo#47561 X-original-commit: 14855eee0f9c5737ee5aaa792defe88e138e0d7d Signed-off-by:
lul-odoo <LucasLefevre@users.noreply.github.com>
-
- Mar 12, 2020
-
-
Raphael Collet authored
The method `recompute()` should not recompute fields on new records. This is both a speedup (those recomputations are not necessary), and fixes an error following an `onchange()` (a field recomputed in an environment with the wrong context.) OPW 2184998 closes odoo/odoo#47545 X-original-commit: fa852ba1 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
- Mar 13, 2020
-
-
Martin Trigaux authored
The synchronisation of commercial_partner_id was introduced at 0d68acff as a way to ensure the value is always correct. The order or the operation was not important though. This synchronisation has a side effect in the following scenario: 0. install base_vat 1. disable vat_check_vies in the settings 2. set an invalid VAT number on a company with at least one contact 3. enable vat_check_vies in the settings 4. correct the VAT number on the company with a valid one --> an error was raised for an invalid VAT number on the contact This is because the commercial_partner_id synchronisation is done before the update of the VAT number. Even if the value has not changed, this triggers the check_vat method. Invert both instructions Courtesy of Wolfgang Taferner Closes odoo/odoo#43065 Closes odoo/odoo#42973 closes odoo/odoo#47543 X-original-commit: d9b2605e Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Katherine Zaoral authored
This tax is only used on purchases to monotributistas or exentos but it's not used on sales. We deactivate to avoid confusions and will be removed in next version. closes odoo/odoo#47554 X-original-commit: aaa066d43e6c697cb91714fdc65ee7a18e5a53e5 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
- Mar 09, 2020
-
-
Aaron Bohy authored
The FieldMany2One allows to quick create record (name_create). However, sometimes, required fields on the co-model make the name_create crash. In this case, the FieldMany2one opens a form view in a dialog to let the user specify those fields, and create a new record with the 'create' method. This was working fine. The FieldMany2ManyTags embeds a FieldMany2One to let the user search for and select or (quick) create tags. In this case, failing quick creation didn't fallback on the dialog form view, but displayed a server error instead. This commit fixes this issue. Bug introduced by 50bf8309 Task 2192754 closes odoo/odoo#47183 X-original-commit: 63ab065f3298c13bb19ae1245d7fd2652581b254 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Mar 12, 2020
-
-
Simon Lejeune authored
At the moment, when a rule has a supply method "Take from stock, if unavailable, trigger another rule", it is displayed as a "take from stock" rule In order to differentiate the rule supply method, we should rather show, thanks to a vertical bar, when a rule is in take from stock, and use both a vertical bar and the three dots when it is in "take from stock, if unavailable, trigger another rule" task-2205748 closes odoo/odoo#47541 X-original-commit: e1c1093c Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-
Laurent Smet authored
This field is used by the account.move.line to know the currency of the invoice. However, the currency_id is not always set when dealing with a single currency. In this case, currency_id is False on account.move.line and we need the additional always_set_currency_id field to know the currency to be used to round the price_subtotal/price_total. closes odoo/odoo#47528 X-original-commit: 0af1a38a Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Benjamin Vray authored
Indicators were hidden in editor when switching to slideshow mode from any other mode. Because the class of the selected mode was defined after rendering and we need this class before the rendering. This also fixes other small issues when switching between different modes. Part of https://github.com/odoo/odoo/pull/44180 task-2162952 closes odoo/odoo#47519 X-original-commit: a99150b11a463901121bbe9751370231e3564ca2 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Benjamin Vray authored
Before that the space between the first two links was more spaced than the others. Part of https://github.com/odoo/odoo/pull/44180 task-2162952 X-original-commit: baeb08da7a32b5c185c358ec6820f8a66c6edb4f
-
Benjamin Vray authored
(+ gallery snippet in carousel mode) Part of https://github.com/odoo/odoo/pull/44180 task-2162952 X-original-commit: 6237c59d607389cb0ed57694bb23b253f49805c8
-
Simon Lejeune authored
Validating a receipt of 90 stock moves having ~300k products in the database goes from 7 minutes to 11 seconds thanks to the addition of "active_test=False in the context before doing the searches on valuation layers. Most searches on "stock.valuation.layer" are done when validating a move, but since this model contains an active field, the orm will pathologically complete the searches expression by adding "id in active" products. If the list is long, it slows down everything. Since this field was only added to have a filter on the valuation reports, it doesn't matter at all to ignore it in "_action_done". It would probably have been cleaner to just remove the field but it doesn't fit the stable policy. Nevertheless, we're going to remove the field in master with task-2178269, as well as this patch. opw-2209797 closes odoo/odoo#47523 X-original-commit: 466a8319 Signed-off-by:
Simon Lejeune (sle) <sle@openerp.com>
-