- Jan 21, 2021
-
-
Mohammed Shekha authored
with this commit we fixes various tour steps, remove steps from crm and sale tour and improve step selector in project tour. task-2444272 closes odoo/odoo#64835 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Jan 25, 2021
-
-
std-odoo authored
Bug === Since 569d35bc a fix have been provided to fix the vertical position of the emoji widget in mobile view. But the fix have been done in a wrong way and we should use the Odoo CSS class instead to detect mobile (and not a bootstrap media query). Task 2253851 closes odoo/odoo#64689 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Jan 26, 2021
-
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider two companies C1, C2 and a website W1 in C1 - Set C2 on the payment term Immediate payment - Go to the shop - Add a product in the cart Bug: A traceback was raised because Immediate was not in company C1 opw:2431705 closes odoo/odoo#65045 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Jan 22, 2021
-
-
Sébastien Theys authored
task-2426357 task-2426366 closes odoo/odoo#64009 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
- Jan 26, 2021
-
-
Benoit Socias authored
Before this commit saving a custom snippet inside an email template produced a "cross origin" error related to the combination of the save & reload mechanism with the fact that the email template editor is inside an iframe. After this commit saving a custom snippet inside an email template is not available anymore. Given that fixing the reload problem would be only temporary -while quite complex-, it has been decided to disable the feature until the editor allows for cleaning snippets without saving them. Decided during task-2374802 closes odoo/odoo#64922 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
Goffin Simon authored
The uom must be displayed to the customer in any case. Otherwise a customer couldn't know the modalities of a contract (ex: a contract of one year or one day) Fine tuning of 342dd5ff opw:2411108 closes odoo/odoo#65037 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Jan 25, 2021
-
-
Ivan Yelizariev authored
Modifying product attributes involves discarding product variants via the method _unlink_or_archive(), which tries to delete variants, and archive the ones for which the deletion fails. This process is very slow when most product variants must be archived. Instead, we filter out the variants that must be archived anyway (like the ones used in sales or stock), in order to avoid the variants that cannot be deleted. On a product with ~200 variants, the time goes from more than 15 minutes (the request times out) to around 5 seconds! opw-2440417 closes odoo/odoo#65024 X-original-commit: 63b2f850 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
Goffin Simon authored
The uom must be displayed to the customer in any case. Otherwise portal user couldn't sign their online quote if they couldn't read the uom (ex: a contract of one year or one day) Fine tuning of https://github.com/odoo/odoo/commit/342dd5ffb8281cb5c37fea4fb96db2b570c30122 opw:2411108 closes odoo/odoo#65010 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
Nasreddin (bon) authored
Issue - Install calendar - Go to calendar and set 'week' view - Go to first week of the year - Add a 'Full Day' event - Add an event of 'few hours' - Click on filters -> Date -> Q1 Only 'Full Day' events remains displayed. Cause 'start_date' is used to in the 'Date' filter and this field is set only on 'Full Day' events. Solution Use 'start' field instead since always set. opw-2439460 closes odoo/odoo#64992 Signed-off-by:
bon-odoo <nboulif@users.noreply.github.com>
-
Jeremy Kersten authored
Be sure that we have a beautiful error page and not a black/white error Be sure that slug_matching with 308 redirect works as expected and don't raise a RequestUID exception. closes odoo/odoo#64889 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Jeremy Kersten authored
Before this commit, a 308 on a route with a modelconverter for a model that have a seo_name field will crash with an exception: Cannot iterate on RequestUID Another simplest solution was to use a with_user(SUPERUSER_ID) but in this case it bypass the security set and display the name of the record even if not yet published. How to reproduce: Create a 308 from /shop/<product> to /mag/<product> Unpublish product 10 Try to access /shop/product-10 You have an unmanaged '500 internal error" because slug_matching -> build -> to_url -> slug with a record with Requestuid as env._uid.
-
Jérémy Hennecart authored
Replace the hardcoded year in the footer by the year dynamicaly fetch from the current date. task-2431308 closes odoo/odoo#64677 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
qsm-odoo authored
The affixed header was not reappearing if page content was removed and the page thus indirectly scrolled. task-2446020 closes odoo/odoo#64990 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Jan 22, 2021
-
-
Xavier BOL (xbo) authored
Before this commit, when the user with no access right to Timesheet App wants to see the tasks in a project and sale_timesheet module is installed, the user has a traceback saying remaining_hours field is not find in the parent view of `sale_timesheet.view_task_form2_inherit_sale_timesheet`. This traceback is raised because the `hr_timesheet.view_task_form2_inherited` is not used if the user has no access right to Timesheet App and then remaining_hours field is not defined for this user because this field is appeared in the view in hr_timesheet module. This commit revises the views inherited from the project.task model to give the user without access rights in Timesheet the possibility to see the tasks in any project he can see. opw-2429662 closes odoo/odoo#64900 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Jan 25, 2021
-
-
Goffin Simon authored
The uom must be displayed to the customer in any case. Otherwise portal user couldn't sign their online quote if they couldn't read the uom (ex: a contract of one year or one day) opw:2411108 closes odoo/odoo#64987 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Jan 24, 2021
-
-
Odoo Translation Bot authored
-
- Jan 22, 2021
-
-
Romain Estievenart authored
The mobile app's authentication bases its feedback to the user on the error message returned by the server. Sadly, in case of multi-databases, no error message are properly returned when the user provides wrong credentials (presenting only an empty Snackbar). This difference of behaviour was introduced in the commit odoo/odoo@07d5ea3 which goals was to give more power for JsonRequest's error handling customization. To do so, the catching of the exception (if one happens) was delegated to the caller instead of the JsonRequest itself. This change indirectly introduced a difference about the treatment of an exception between mono and multi-database : * mono-database was already catching the exception and handling it properly (see in https://github.com/odoo/odoo/blob/f05f8ef647a4eaba49d8a20eb8068f1c7a702297/odoo/addons/base/models/ir_http.py#L235-L241 ). * multi-databases didn't catch it. This commit restores the parity between both use cases by applying the same behaviour (as described in the commit odoo/odoo@07d5ea3): ```python ir_http.dispatch(): try: request.dispatch() catch Exception as e: ir_http._handle_exception(e) ir_http.handle_exception(e) request._handle_exception(e) ``` Steps to reproduce: 1. Open the mobile app; 2. Try to register an account with a wrong password with multiple databases; 3. The snackbar is empty and no error is shown => bug; Task ID: 2287176 closes odoo/odoo#64856 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
Nicolas Seinlet authored
In 13.0, some account.move.line fields (amount_currency, debit, credit and account_id) couldn't have a value when the line is of type 'note'. Skiping them during line copy for notes is not an issue. During 12.0->13.0 migration, we were facing issues with "grouped similar invoice lines in a single move line", because this feature is not available anymore in 13.0. To avoid any "loss of data" during migration, we used lines of type note to create "missing" invoice lines in move lines without altering accounting in any way. As a consequence, we have 13.0 databases with lines of type note having values for fields who couldn't have ones. closes odoo/odoo#64954 X-original-commit: 677edafe Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
Ivan Yelizariev authored
from #64626 closes odoo/odoo#64928 X-original-commit: 1a34778b Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
-
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>
-