- Jan 22, 2021
-
-
Benoit Socias authored
Before this commit the custom snippets were saved across websites because the RPC mechanism used by the save & reload does not include the context by default. After this commit the custom snippets are saved for the specific website as initially intended. No migration is needed: already created snippets that have been created across all sites will have the correct lifecycle because of the copy-on-unlink system: trying to delete one will make it specific on other websites. Related to task-2374802 closes odoo/odoo#64917 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Pierre Masereel authored
When you are selling a kit in point_of_sale, the associated picking is not validated. Because no quantity done is set on its component move lines. This has been caused by modifications made in following commit: https://github.com/odoo/odoo/commit/f9dd1d88d0d24914028464cc12b69ff0878346f8 OPW-2426992 closes odoo/odoo#64930 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
wan authored
Following https://github.com/odoo/odoo/commit/d675dbaa4c7174591e0e7c1a3caf3e76877312ce Also updated tests to be more consistant. Regex used to find problematic lines: `\btype\b.*\b(out|in)_(invoice|refund)\b` closes odoo/odoo#64915 Related: odoo/enterprise#15908 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
Benjamin Frantzen (bfr) authored
- On account_edi_document, lock the documents successively instead of all at once. - Lock account_move that should be cancelled. Before, cancelling the invoice after cancelling it on the web-service could fail. - Lock ir_attachment that might be unlinked. Before, attachments that weren't attached to any model could become unreachable but still present in the database when an invoice was cancelled or a new attachment was produced. closes odoo/odoo#64870 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
Nasreddin (bon) authored
Issue - Install "Ecommerce" app - Go to 'Shop' page and edit it - Add a "Dynamic Products" block - Click on it to edit it : - Select any template - Select `Desks` as product category - Save - Go to "Website -> Configuration -> eCommerce Categories" - Delete the "Desks" category - Go back to Shop page Error : "Record does not exist or has been deleted". Cause The search domain is looking for child categories of dataset.productCategoryId (who does not exist anymore in the above case). `child_of` do a browse() to fetch the records, and therefore generate an error if category not found. Solution Log warning message if unexptected domain and return empty records set instead. This commit also reverts commit 0de069b8 that generated the issue. opw-2440917 closes odoo/odoo#64847 Signed-off-by:
LTU-Odoo <IT-Ideas@users.noreply.github.com>
-
- Jan 18, 2021
-
-
Sébastien Theys authored
This mobile specific code does not work correctly because `if channel in channel_previews` always returns false due to the dict having channel ids as key and not channels. A fix could be to look for id instead of record in the dict, but at the same time this is dead code, there is no need for mobile specific channel info. task-2412157 closes odoo/odoo#64722 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
- Jan 15, 2021
-
-
Romeo Fragomeli authored
Before this commit, on pivot view when a user adds some groupBy the dropdown menu remains always open. This commit restore the same behaviour like on desktop. Steps to reproduce: * Open an app with a Pivot view * Select the Pivot view * Add one "groupBy" * The dropdown remains open => BUG Task ID: 2439742 closes odoo/odoo#64613 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
- Jan 21, 2021
-
-
Sébastien Theys authored
* = hr_holidays, im_livechat, website_livechat A huge amount of components where rendered for no reason, notably when typing a new message (at every key press), which significantly slowed down the interface. There were 2 causes to this number of renders: - OWL rendering all children automatically, even if their props didn't change, unless `shouldUpdate` is overridden, which is now done. - `useStore` selectors being way too generous in what they observed task-2399731 closes odoo/odoo#62703 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
- Jan 22, 2021
-
-
Adrien Widart authored
When using the Calender synced with Google, if the user tries to delete an event, an error message is displayed: he has to archive it instead. To reproduce the error: 1. Sync Odoo Calendar with Gogle Calendar 2. Add an event 3. Click on it > Delete Error: UserError message: "You cannot delete a record synchronized with Google Calendar, archive it instead" To make the flow simpler and faster, when clicking on "Delete", the server will archive the event. When archiving an event, the server deletes the corresponding event on Google Calendar. As a result, the next time the user loads his Odoo Calendar, the sync Google->Odoo will delete the archived event. OPW-2440339 closes odoo/odoo#64874 Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
- Jan 21, 2021
-
-
Aurélien Warnon authored
This commit fixes a nondeterministic issue during the rainbowman tour. We make sure that the record is properly created and the kanban reloaded before moving on to the next step, ensuring that the tour completes without race conditions. Task-2426257 closes odoo/odoo#64845 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Rémy Voet (ryv) authored
Add two indexes (on `product_id` and `product_tmpl_id`) on the `mrp.bom` model to speed up `_bom_find` which is highly used and it uses always the `product_tmpl_id` and sometime the `product_id` in the search domain. Performance Gain: With a DB with 2K BoM, a `_bom_find` search (`product_id` and `product_tmpl_id` are in domain): The SQL execution time is +- 5 times faster. task-2390516 closes odoo/odoo#63922 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Rémy Voet (ryv) authored
Use UNION ALL instead of UNION to let PostgreSQL filter out rows before sorting and avoid Unique check. Note that it shouldn't change the result because each 3 SELECT doesn't have domain intersection. Improve performance the `_get_orderpoint_action` and the Forecasted Inventory. Performance Gain: With a large Database (5K products, 120K stock move, 20K quants, etc): To open the Forecasted Inventory: Before: 10.06 sec +- 0.02 After: 3.98 sec +- 0.07 task-2390516
-
Rémy Voet (ryv) authored
Avoid to filter in a loop and use a read_group instead to group by product-warehouse outside. Also remove costly useless code. Performance gain ---------------- On a large database (120K stock move, 5k product) where +- 700 manual orderpoints will be create during the open of the replenishement report: Before: 16.14 +- 0.16 sec of python. (SQL time is +- 14 sec) After: 1.33 +- 0.91 sec of python. (SQL time ==) task-2390516
-
Rémy Voet (ryv) authored
`o.location_id.id == g['location_id']` => `Comparing apples and oranges: stock.location(243,) == (219 ...` replace by the correct code and avoid warning. task-2390516
-
Rémy Voet (ryv) authored
Replace union of RecordSet by union of OrderedSet to reduce the complexity and improve the scalability. It can be a bottleneck to huge number of move to assign. task-2390516
-
Rémy Voet (ryv) authored
Replace union of RecordSet by union of OrderedSet to reduce the complexity and improve the scalability. It can be a bottleneck to huge number of move to validate. task-2390516
-
Andrea Grazioso (agr-odoo) authored
Set up a DEMO product with - warning message on sale - variant - Order Grid Entry as Sales Variant Selection Create SO, configure this product Warning message doesn't display opw-2442352 closes odoo/odoo#64886 X-original-commit: 50ccbdb9 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-
- Jan 22, 2021
-
-
Andrea Grazioso (agr-odoo) authored
Go to calendar Have an event with a long description In day/week/month view click the event to see the event popup The description will overflow the length of the popup opw-2421554 closes odoo/odoo#64817 Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-
- Jan 18, 2021
-
-
Jeremy Kersten authored
Now we cache the result of matching url in router. This code need to be merged in saas-14.1/master with url_rewrite, but it required a change of api method closes odoo/odoo#64362 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Jeremy Kersten authored
Same for all /web/ urls that are no multilang
-
- Jan 21, 2021
-
-
Andrea Grazioso (agr-odoo) authored
1. Go to Settings > Accounting and set a Check layout 2. Go to Accounting > Vendors > Payments 3. Create 2 payments to Vendors, and Confirm (but do not print). - Payment Type: Send money - Partner Type: Vendor - fill in any Amount - Payment Method: Checks 4. Go to the accounting dashboard, click on "2 checks to print" 5. Select both payments and print the checks from the Actions menu 6. Refresh the page. Both payments still show up with the "Checks to print" search filter enabled. They also shows up in Accounting dashboard as checks to print opw-2427523 closes odoo/odoo#64840 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
- Jan 15, 2021
-
-
Sébastien Theys authored
task-2347640 closes odoo/odoo#63313 Related: odoo/enterprise#15320 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
- Jan 21, 2021
-
-
qsm-odoo authored
Like any snippet creating dynamic elements on page load, we need to use a special class on those elements to mitigate the undo/redo system's imperfections. closes odoo/odoo#64876 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Alexandre Kühn authored
Task-2444878 closes odoo/odoo#64857 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Julien Castiaux authored
Configure an email server and create a login account with a space like "foo bar". In odoo configure an Outgoing mail server using that account, there is an error because the username is misconsidered invalid. The errors resides in the IDNA implementation of Odoo, we try to split the username to get a login and a domain in order to encode the domain using the ponycode algorithm. In case the username was not an email adress but just a single name, the single name was mistaken for a domain. As domain cannot have spaces, an error was thrown. opw-2419024 closes odoo/odoo#64864 Signed-off-by:
Julien Castiaux <Julien00859@users.noreply.github.com>
-
Benjamin Vray authored
Before this commit: -when moving a snippet using the drag and drop button, two drop zones instead of one was added at the initial location of the dragged snippet. -when moving a snippet using the drag and drop button, no drop zone was added at the initial location of the dragged snippet if the snippet was alone in its parent. For example, the left jumbotron in the banner snippet. -the drop zones handled by the "children rules" were never vertical when it was necessary. This commit also refactors the code to avoid some duplicated lines. task-2312878 closes odoo/odoo#64838 X-original-commit: e637056b Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Dec 29, 2020
-
-
Nicolas Galler authored
Behavior prior to this commit: When a PO is generated (via reordering rule, mto rule, or manual replenish), the description on the PO line includes the internal notes. Behavior after this commit: The description on the PO line does not include the internal notes. opw-24222438 closes odoo/odoo#63892 Signed-off-by:
Nicolas Galler <ngaller@users.noreply.github.com>
-
- Jan 08, 2021
-
-
Jérémy Hennecart authored
Before when there were long labels, this was leading to an overlapping of the text. Now, we display the whole label but in multiline with a maximum number of characters per line depending on the number of columns. The font size will also be compute depending of the number of characters per line and with the length of the longest word in the labels. task-2382681 closes odoo/odoo#61913 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Jan 20, 2021
-
-
Nasreddin (bon) authored
Issue - Connect on smartphone (or use chrome debug mode to switch to mobile view) - Install "Ecommerce" module - Add a delivery method D with a price on product P and publish it - Go to shop and add product P to your cart - Go to payment and switch delivery method Total amount above the summary is not updated. Cause Update is done on JS when delivery method is changed. No targeting Total Amount in summary head card (seen only on small device). Solution Add ID on Total Amount in summary head card element and update it with JS in same time as other fields (taxes, total, ...). opw-2424355 closes odoo/odoo#64800 X-original-commit: 7ab63d323680a6a69e77dcc59819928aa7872582 Signed-off-by:
bon-odoo <nboulif@users.noreply.github.com>
-
- Jan 21, 2021
-
-
Goffin Simon authored
A purchase journal cannot be created without a default expense account A sale journal cannot be created without a default income account opw:2431278 closes odoo/odoo#64741 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Jan 18, 2021
-
-
Andrea Grazioso (agr-odoo) authored
- Create a promotion of discount 10% with coupon (A) - Create a promotion of fixed discount (50$) with coupon (B) - Create a sale order of 50$, apply A and then B Order will have a negative total. This is due to the check done on the order amount, which needs to be checked without the current program, to allow correct stacking of promotions opw-2410666 closes odoo/odoo#64572 X-original-commit: e31339ce Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-
- Jan 15, 2021
-
-
Sébastien Theys authored
task-2388600 closes odoo/odoo#62446 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
- Jan 20, 2021
-
-
Sébastien Theys authored
task-2333535 task-2388676 closes odoo/odoo#64505 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
Create a promotion auto applied with 0 minimum amount on any product in catalog. Have a DEMO product invoiced on delivery Create a sale order with DEMO, apply the promotion. Confirm. Click on 'Create Invoice'. The invoice will only contain the promotion because the line for DEMO is to be invoiced only after delivery, while by default the promotion product has the invoice policy 'on order' This commit will: * avoid highlight the button 'create invoice' if the only invoiceable lines are promotion lines as well as raising an error if the invoice is created in the same scenario * refuse to invoice only promotion lines from a SO. * adds a test to cover the case opw-2414630 closes odoo/odoo#64721 X-original-commit: a3afb98b Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
- Jan 19, 2021
-
-
nie authored
Steps: - Go to "Website" > "Go to Website" - Click Edit in the top right corner - Click Options - Select "Add a Google Font" in the Font Family field - Insert an erroneous Google Font link (e.g. https://fonts.google.com/specimen/Robotoj ) - Save & Reload - Click Edit again Bug: The Edit button is not responding anymore Explanation: We try to `@import` the link in multiple files. For example, here: https://github.com/odoo/odoo/blob/70eb39b0cf30c1acf9a7116e109874b60e27aa2c/addons/website/static/src/scss/website.scss#L10 An erroneous font family results in an error 400 from the Google Fonts server. This prevents parts of the JS to load and makes it impossible to enter the edition mode. `EditPageMenu` handles the behavior when clicking on the Edit button. This menu depends on `website.compiled_assets_wysiwyg` as seen here: https://github.com/odoo/odoo/blob/b02a99bec709b5a6dc4dabb6cb81435dadc24e7e/addons/website/static/src/js/menu/edit.js#L10-L14 Since there is an error generating the file, the Promise fails but the error is not handled: https://github.com/odoo/odoo/blob/70eb39b0cf30c1acf9a7116e109874b60e27aa2c/addons/web/static/src/js/core/ajax.js#L164-L168 This commit prevents CSS loading errors from silently failing. The crash screen will only show up if the user is logged in and has edition rights. This commit also prevents the user from posting the form if the font is not accessible. At the moment, querying an unknown Google font from a script will result in a CORS error. A valid one will pass just fine. In case Google changes the behavior of these queries and allows the 400 to be sent, the fix also checks if the query returned an `ok` status code. opw:2439073 closes odoo/odoo#64695 Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
- Dec 11, 2020
-
-
Tiffany Chang (tic) authored
Some added readonly attributes in the unbuild form view were overriding the `states={'done': [('readonly', True)]}` attributes in the models' fields. So we add the readonly when state='done' to the view as well. Note that same issue exists in saas-12.3 and 13.0, but only for 2 of the 4 fields fixed in this commit (i.e. it probably isn't a big deal for these older versions.) Discovered during task: 2033341 closes odoo/odoo#63537 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Jan 20, 2021
-
-
Raphael Collet authored
The call model.browse('xxx').exists() should not return the record. Instead, it should fail as the string 'xxx' is not a valid ID. closes odoo/odoo#64779 X-original-commit: 824a6515 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
- Jan 19, 2021
-
-
Aaron Bohy authored
This commit updates owl from v1.2.1 to v1.2.3 See [1], [2] for the list of changes. [1] https://github.com/odoo/owl/commit/71f545058bc9cdc326003bf8573cef1bb4c903d4 [2] https://github.com/odoo/owl/commit/490cf180794cdc100e33e792f6d12172d42bf981 closes odoo/odoo#64516 Signed-off-by:
Géry Debongnie (ged) <ged@openerp.com>
-
- Jan 20, 2021
-
-
Pierre Paridans authored
Before this commit, the `on_attach_callback` and `on_detach_callback` callbacks are not called all the time on the `Dialog` widget when it's attached/detached to the DOM. Relying on those callbacks could result in unpredictable behaviours. To be more precise, the `on_attach_callback` isn't executed on a regular Dialog#open() call. But Dialog spawned by the ActionManager will execute it. This difference prevents from properly binding those callbacks later on through an extend or include of the Dialog widget as we have no way to know if they have already been called or not (e.g. which can result in calling them twice). This commit normalize this situation by ensuring that the `on_attach_callback` and `on_detach_callback` callbacks are properly called by the Dialog widget and allows any extension of this widget to rely on them. Therefore the ActionManager is adapted accordingly. opw-2438534 closes odoo/odoo#64780 Related: odoo/enterprise#15849 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
- Jan 18, 2021
-
-
Andrea Grazioso (agr-odoo) authored
To fully allow f4e67d8a we need also to disable to check on account when the constraint field has been used to set the account on the journal opw-2394959 closes odoo/odoo#64667 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-