- Oct 14, 2020
-
-
Xavier Morel authored
By default, PdfFileReader will monkeypatch the `warnings` module even if it has no reason whatsoever to do so and suppress the `captureWarnings` behavior. This means as soon as we've loaded a PDF file, `warnings.warn` don't trigger `logging` warnings anymore, and become invisible. This can lead to non-deterministic behaviors depending as warnings may or may not be suppressed depending when they occur relative to loading a PDF e.g. load a module which runs a test which loads a PDF before a module triggering a warning and the warning won't be visible, other way around it will. Except ofc while we have an override to PdfFileReader it's not used *everywhere*, so need to monkeypatch the init. closes odoo/odoo#60002 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Oct 13, 2020
-
-
Adrien Horgnies authored
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#59911 X-original-commit: 89c301b4 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com> Signed-off-by:
Adrien Horgnies <AdrienHorgnies@users.noreply.github.com>
-
- Oct 15, 2020
-
-
Nasreddin (bon) authored
Issue - Install "Project" module - Go to the chatter of any Task - Log the following message (by selecting the partner) then send: "test@test.com @marc Demo " Message is not sent. Cause When parsing the content, the match result is "@test.com\n@Marc Demo" due to no space between the two mentions Solution Add space after line break (only when parsing selection). In this case, it will match with 2 mentions instead: "@test.com\n" and "@marc Demo " For _generateMentionsLinks step, add a space after '</br>', it will match 2 mentions but we remove the ones that end with '</br>'. This last fix is to avoid having a non-mention string containing '</br>' (for example), and therefore not having them escaped in final message content. opw-2322577 closes odoo/odoo#59648 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
- Sep 28, 2020
-
-
Kamesh Patel authored
Before this commit: The date range widget opened by default when the 'create invoices' the wizard is opened. because the default focus is 'Timesheets Period' field. After this commit: Disable autofocus on 'create invoice' action, after this changes The date range widget is not opened by default when the 'create invoices' the wizard is opened. Task-2344289 closes odoo/odoo#58676 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Oct 15, 2020
-
-
Laurent Smet authored
Suppose two price_included taxes: 10%, 20%, a product having a sale price of 110.0 and a fiscal position tax 10% => tax 20%: When onchange_product_id is called, the price_unit is computed as follow: 110 / 1.1 = 100 100 * 1.2 = 120 So price_unit = 120 and balance = 100.0 But in onchange_uom_id, we do the same thing and we call _get_fields_onchange_balance_model with balance=100.0. However, in this method, an empty dictionary is returned because price_subtotal == balance. Then, {}.get('price_unit', price_unit) will return the original price_unit (110.0) instead of the new computed one (120.0). closes odoo/odoo#59888 X-original-commit: 2324599b Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Oct 02, 2020
-
-
Giacomello Nathan (ngi) authored
If we submit an expense to the manager, a next activity is created for him. If we reset to draft, it is not cancelled. So if we resubmit expense, a second next activity is created for the manager. This commit will cancel created activities when we put the expense in draft Task id: 2350168 closes odoo/odoo#58986 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Oct 15, 2020
-
-
Dominik Rubo authored
This change ensures that when the user activates optional features of the project app, they are enabled in existing projects as well as newly created projects automatically, which is likely what the user expects. For most optional features, this behavior was already in place. It was not in place yet for the sub-tasks and timesheets features, which this change fixes. Two added tests check the behavior described above for features that are activated through a `group_*` field on `res.config.settings` (sub-tasks, recurring tasks and ratings). The tests do not cover features that are activated through a `module_*` field, as such fields require the installation of further modules and we cannot simulate this. Task 2297054 closes odoo/odoo#58692 Related: odoo/enterprise#13641 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by:
Kevin Baptiste <50135801+kba-odoo@users.noreply.github.com>
-
- Sep 24, 2020
-
-
shivam shah authored
purpose of task is to solve the design issue on hr expense banner when there is horizontal scrolling on tree view then the banner on top will not adapt it so there is empty space at last. So in this commit, Fix the position of the expense header so it should not scroll with the tree. closes odoo/odoo#58289 Taskid: 2336309 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Oct 15, 2020
-
-
Kairis authored
When there is no expense, a messages is shown: "Did you try the mobile app?" When clicking on the "Download on the App Store" or on the "Get it on Google Play" buttons, generated QR codes have some invalid data before it: - 002 - 1 - <the url> This commit removes datas that are before the url so only the url is displayed. closes odoo/odoo#58097 Taskid: 2326303 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
Paul Morelle authored
Since odoo/odoo@c6397ab3b3654da336a4269a81d5d91016baf520, the printer.js file has been refactored, and if the connection to the IoTBox failed, the error popup could not be displayed because Gui was undefined. Steps to reproduce on the runbot: - Configure your POS session with an IoTBox with receipt printer and cashdrawer - Open your POS session - Skip the connection to the IoTBox - Proceed to payment - Open the cashbox - Error: Gui is not defined This commit fixes the behavior by displaying the error properly. In line with this fix, we are also putting the printing assets back in the point_of_sale.assets because pos printing in the backend is no longer needed. closes odoo/odoo#60006 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
- Oct 13, 2020
-
-
Arnaud Joset authored
Before this commit, * the website_sale tests used the field optional_product_ids on product_template even if it is defined on sale_product_configurator. * the website_sale_product_configurator test added some steps to the website_sale tour. This commit removes the faulty fields in the website_sale test and fix the website_sale_product_configurator tests. After this commit, sale_product_configurator and website_sale_product_configurator have a test classes to setup all the parameters needed during the flow. This prevent duplicated code for similar workflow. closes odoo/odoo#59201 Taskid: 2340918 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Oct 14, 2020
-
-
Jeremy Kersten authored
closes odoo/odoo#60055 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Oct 15, 2020
-
-
Rémy Voet (ryv) authored
Before, the `virtual_available_at_date` was used to describe the `free_qty_today` when the forecasted is calculated via the forecasted of stock move. This issue create a difference of color when SO become confirmed (if the `free_qty_today < 0`). To fix this, use the `free_qty_today` to compute the `will_be_fulfilled` (in the js widget) and fill `free_qty_today` instead of `virtual_available_at_date` when SO is confirmed. opw-2360024 closes odoo/odoo#60054 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Nicolas Galler authored
The unit test in `test_base_document_layout` does not pass with version 7.0.0 of PIL, which is loaded by default on Ubuntu 20.04. The reason is that the color obtained from the image is slightly different. This fix slightly relaxes the test (in fact we don't care about the exact color obtained in this test, we just want to make sure that it doesn't crash) opw-2342394 (original ticket) closes odoo/odoo#59912 X-original-commit: 3028c814 Signed-off-by:
Thomas Dieuzeide <tdi-odoo@users.noreply.github.com>
-
- Oct 14, 2020
-
-
wan authored
Moved in the post init hook of account_accountant closes odoo/odoo#59849 Related: odoo/enterprise#14021 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
- Oct 08, 2020
-
-
William Henrotin authored
Commit 0f80e69b tracked all changes on qty_received on the purchase order. But did that wrongly by calling `write` inside a compute. Commit b7cc3b06 fixed this `write` by an `=` to avoid error when the compute is called on virtual records. This fix result on forgetting to track the quantity delivered. This commit sends a message to post in `write` AND in the `compute_qty_received` to be sure it is posted. This way, we do not call write in compute anymore. closes odoo/odoo#59482 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
- Oct 14, 2020
-
-
Xavier Morel authored
Introduced in 5a031e64, issue got caught and fixed in the master version of the PR (odoo/odoo#59798) but because of an other issue the warning was non-deterministic, and the 14.0 PR (odoo/odoo#59794) was successfully merged without needing the change, and has been breaking stagings ever since. Also updated the warning stacklevel so that it reports the *caller* of AccountMove.post instead of reporting AccountMove.post itself, that's more useful. closes odoo/odoo#59996 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Xavier Morel authored
`registry._init_modules` is a set so its iteration order is non-deterministic (it's randomised on interpreter initialisation unless PYTHONHASHSEED is provide through the environment). This can lead to annoying non-deterministic behavior: while the non-determinism is only at the module level, it's easy enough for modules to have python-level side-effects (e.g. patch methods, update globals, ...), which may only be surfaced by an other module executing after them, but not if said module executes before. By sorting the modules we should make this much more reliable one way or another. closes odoo/odoo#60023 X-original-commit: f9169a46 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
Nicolas Martinelli authored
- Create a tax: 5% Included in price - Set the company currency to USD - Set the currency rounding of CHF to 0.05 - Set the rate for CHF to 0.654065014 - Create the following invoice in CHF: Set a payment term Prod 1, 1 unit, 5.0 CHF, tax 5% Prod 2, 1 unit, 10.0 CHF, tax 5% Prod 3, 1 unit, 50.0 CHF, tax 5% It is not possible to save the invoice because of an unbalanced journal entry. Indeed, the Receivable line is $99.30 while it should be $99.29. This happens because we round the `total_balance` with the rounding precision of the invoice currency while it is in the company currency. closes odoo/odoo#58798 closes odoo/odoo#59978 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
- Create a tax: 5% Included in price - Set the currency rounding of the company to 0.05 (e.g. CHF) - Create the following invoice Prod 1, 1 unit, 5.0 CHF, tax 5% Prod 2, 1 unit, 10.0 CHF, tax 5% Prod 3, 1 unit, 50.0 CHF, tax 5% The total amount of the invoice is 64.95 CHF instead of 65.00 CHF, even in a 'Round per line' configuration. It happens because `compute_all` rounds the amounts following the number of digits of the currency instead of using the `rounding` field. Note that there is a discrepancy between the POS computation and the Account computation: the POS already uses the `rounding` field instead of the number of digits: https://github.com/odoo/odoo/blob/80073c5430f0ab562dfc27572c108114161ebb25/addons/point_of_sale/static/src/js/models.js#L1855-L1991 opw-2341566
-
qsm-odoo authored
Before this commit, the hoverable dropdown option was broken because we changed the option selector to the navbar element instead of the header element. But we forgot to care about the data-select-class which adds a class on the header. This commit fixes the issues by changing the $target back to the header element for the related option as the fact it is linked to the navbar element is only so that the options appear in a different section, on navbar click. Part of https://github.com/odoo/odoo/pull/59842 task-2312878 closes odoo/odoo#59842 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
qsm-odoo authored
*: web_editor The selector targeting the navbar for the related editor options was not correct to target the navbar of the 'Boxed' version of the header. Part of https://github.com/odoo/odoo/pull/59842 task-2312878
-
- Oct 13, 2020
-
-
xO-Tx authored
When the height not forced (50% or 100% screen's height), the snippet simply disappear if there is no content inside (default). The 4e220bf commit makes parallax snippet empty by default and the main goal of a8f0cee was to make "DRAG BUILDING BLOCK HERE" placeholders appear only on drag, that's why we need to add a "min-height" for parallax to keep it visible when the "Height" selected is auto. task-2327025 closes odoo/odoo#57075 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Oct 14, 2020
-
-
Thibault Delavallée authored
Purpose of this commit is simply to add tests about alias defaults. Code protects it against being badly formatted. However having tests ensuring it is always a good idea to avoid regression. Task ID-2361179 closes odoo/odoo#60010 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
IEL authored
Steps to reproduce: * In Inventory, activate multiple warehouses and storage locations, multi-step routes, Delivery packages * On the main warehouse, activate 3 steps delivery * Create a stockable product A * Update quantity on hand: 100 units in a package PACK1 in Stock/Shelf 1 * Create a new Pick transfer with one move: 120 product A * Set the transfer as todo and check availability: a move line for the 100 units from PACK1 is created * Edit the move line: set a destination location, **change the result package to PACK2** and set a qty_done * On product A, update the quantity on hand: add a *new* package PACK3 of 20 in Stock/Shelf 1 * On the transfer, click on check availability Current behavior: * A new move line is created for the 20 units from PACK3 to PACK3: ok * The move line edited before for the 100 units has its result package **reset to PACK1** Expected behavior: * A new move line is created for the 20 units from PACK3 to PACK3: ok * The move line edited before for the 100 units has its result package kept to **PACK2 as edited by the user** who decided to open the package already Short analysis: At the end of `StockMove._action_assign()`, the method `StockPicking._check_entire_pack()` is called. For each package moved by a move line, this method checks if the package is entirely moved (sum of quants == sum of move lines). The check is done by `StockPicking._check_move_lines_map_quant_package`. When the sums match, the package level of the move lines is created or updated. When it happens, it writes the package in the `result_package_id` of the related lines. It should not change the result_package_id if it was already set. Thinking further, maybe it should not consider lines with a `qty_done` in `_check_move_lines_map_quant_package`: users already picked these lines, if they decided to empty or change the `result_package_id`, a new check of availability for the remaining quantities should not change these lines. opw-2346608 Fixes #58491 closes odoo/odoo#59985 X-original-commit: be59c9a8 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Lucas Perais (lpe) authored
Commit e10fd346 introduced batched reference fields name_gets across groups but was also buggy as follows: Have a grouped list view showing at least 2 groups Have a reference field with different values showed in the list for each record Before this commit, the name_get of those reference fiels were fetched only for the last group After this commit, the name_get are fetched in a batched fashion (by model) for each group and display correctly closes odoo/odoo#59903 X-original-commit: bbb608a1eff638040f0fc7b951fedf1579cc15b2 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
-
Sébastien Theys authored
opw-2358094 closes odoo/odoo#60004 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Thibault Francois authored
Problem ------- _search_is_mail_thread_sms is looking for ir.model in the database and then fetch them from the registry without verification. This can lead to key error when a model is present in the database but not in the python anymore. This situation can happen after a migration. Solution -------- Check the model is present in the registry closes odoo/odoo#59998 X-original-commit: 448626d8 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Kamesh Patel authored
Before this commit: When accessing activities from the systray, any existing breadcrumb-item should be clearer. After this commit: Clear breadcrumb-item when access activities from the systray. Task-2342246 closes odoo/odoo#59997 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Thanh Dodeur authored
This commit adds shadow to RPCs that are not supposed to be blocking. task-2352703 closes odoo/odoo#59991 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Thanh Dodeur authored
This commit inverts the zoom direction of the scroll wheel in the attachment viewer to respect the behaviour of before the refactor. part of task-2171884 closes odoo/odoo#59992 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Dharmraj Jhala authored
Whenever when change the 'Leads' of 'Pipeline' boolean field on sales team, it should also update the linked alias. Mainly, if 'Lead' is checked, the 'Default Values' on the alias should also be updated. It used to work before a recent refactoring (see commit [1] and [2] for more information). This commit adapts the changes done in refacotring and updates the alias values while updating the sales team. [1] - https://github.com/odoo/odoo/commit/7cfd364db54e88970ef51c798df3bd4df44222b3 [2] - https://github.com/odoo/odoo/commit/186cfb5ebd35d572d0f635cd7975de7cff0d1055 TaskId - 2357573 closes odoo/odoo#59976 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Thanh Dodeur authored
This commit changes the url formatting of the `services.navigate` in the attachment viewer. Before this commit, the resulting URL was erroneous which prevented download and lead to a 404 error. part of task-2171884 closes odoo/odoo#59953 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
nie authored
Steps to reproduce the bug: - Set the timezone of the user to Australia/Melbourne - Set the country of the company to Australia - Set the time of the system to 20:00 UTC - Have Project and Sales installed - Enable Timesheet and Timesheet Timer on project (A) - Create a task in project (A) - Click Start and then Stop - Confirm the wizard Bug: The date of the new timesheet line is set to yesterday. opw:2351204 Original PR: odoo/enterprise#14023 closes odoo/odoo#59961 X-original-commit: b85a5fc39887660992b5dd0f49ca331e38dd6030 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
Jorge Pinna Puissant authored
Do not set a default `account_id` for section and note lines. Indeed, when set the constraint `check_non_accountable_fields_null` will raise. fine-tuning of c22f99dd opw-2357415 opw-2355559 opw-2359283 closes odoo/odoo#59951 Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com>
-
Sébastien Delafond authored
closes odoo/odoo#59946 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
Sébastien Delafond authored
-
Xavier ALT authored
This commit fix the "Unsupported M2M command 1" raised `Form` helper. The `onchange()` method will in fact emit UPDATE command for many2many fields when the value submitted an the one in database has changed (this is the case for example for nested m2m in form views) OPW-2044631 closes odoo/odoo#59937 X-original-commit: 76bd8208a416cefab6becff9f2d7204c7d196201 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com> Signed-off-by:
Xavier ALT <xavieralt@users.noreply.github.com>
-
- Oct 13, 2020
-
-
Nicolas Lempereur authored
On safari with apple device in belgium timezone, this code: ``` x = new Date(2020, 2, 28, 2) x.setDate(29) ``` returns: > Sat Mar 28 2020 02:00:00 GMT+0100 (CET) > Sun Mar 29 2020 01:00:00 GMT+0100 (CET) This is not consistent with any other combination of OS and browser tested, where this code would return eg. for chrome on macOS: > Sat Mar 28 2020 02:00:00 GMT+0100 (Central European Standard Time) > Sun Mar 29 2020 03:00:00 GMT+0200 (Central European Summer Time) In most instance, this is not an issue, but for country with midnight as Daylight Saving Time (DST) change, this is an issue, because the Tempus Dominus calendar widget will have a duplicated day which might eg. make a month totally not usable. This issue can eg. be reproduced in Lebanon timezone at this address: https://tempusdominus.github.io/bootstrap-4/Usage/ Going to the month of April 2020, an error happen because to get the first day of the week of 1st April, we do: ``` this._viewDate.clone().startOf('M').startOf('w').startOf('d'); // .startOf('M') => Apr 01 00:00:00 // .startOf('w') => Mar 28 23:00:00 (safari bug) // .startOf('d') => Mar 28 00:00:00 ``` which gives us the wrong day (28 instead of 29) which causes an error. Other report of the issue: - https://www.donedone.com/timezone-specific-browser-specific-datetime-bug-2014/ - https://github.com/date-fns/date-fns : issue 571 - https://forum.mobiscroll.com/t/issue-with-invalid-dates-range-script/108 opw-2271482 closes #59786 closes odoo/odoo#59901 X-original-commit: 112267d6 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Oct 14, 2020
-
-
JF Aubert authored
Consider move uom different from serial product uom to set up move lines with product uom closes odoo/odoo#56898 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-