- Nov 17, 2022
-
-
qsm-odoo authored
With [1], checkboxes in website forms were wrapped in a <div/> with the "form-check" bootstrap class (as they should). That forgot to mark the checkboxes themselves with the class "form-check-input". Without it they are misaligned. This fixes the error for newly added checkboxes in forms. Old ones will stay "broken". [1]: https://github.com/odoo/odoo/commit/9ea276ae2f00c3a5ba4e10af313085947e70e265 Related to opw-3003952 Part-of: odoo/odoo#105870
-
qsm-odoo authored
Before this commit, if the user tried to setup a required selection field whose first value is empty, it was possible but the empty value appeared as a 0px-height div in the DOM preview. That empty value also shows up when trying to use the conditionally-hidden fields feature: if another field's visibility depends on such selection field, the editor UI was visually broken as the first choice was an empty option element. Now, we show "<no value>" in both cases. Note: this is not done in earlier versions than 15.0 although the problem exists, but it was decided that the real problem was about the visibility select being visually broken and that feature only appeared in 15.0. Related to opw-3003952 Part-of: odoo/odoo#105870
-
vishal padhiyar authored
Before this commit: When we try to create link manually and try to press enter cursor gets stuck. After this commit: Now when we create link manually and press enter cursor moves to next line. Task-2745129 closes odoo/odoo#100207 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
vishal padhiyar authored
Before this commit: When we try to copy paste link into another link then url of the old link does not change and only lable change. After this commit: Now when we try to copy paste link into another link then the url of the link changes with the label. Task-2768541 closes odoo/odoo#99569 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
vishal padhiyar authored
Before this commit: - When you try to paste text beside a text which is in code formate it puts the new text in new line with smaller font. - When we try to paste text in code formate in new line then it will give a blank space below the pasted text After this commit: - when you try to paste text beside a text which is in code formate it puts the pasted text in new line with original fontsize. - When we paste the text in code formate in new line then it will not give a empty line below it, Task-2683455 closes odoo/odoo#96763 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Walid HANNICHE (waha) authored
Steps to reproduce: - Go to Purchase -> Reporting -> Dashboard - click on the "expand" arrows of the pivot view - favorites - add to dashboard Bug: adding a view with no actionID causes the dashboard to crash on load this [commit] prevents adding a view with no actionID Fix: added a default value of False to add_to_dashboard actionId only display the option to add_to_dashboard for views that have actionId opw-2965036 [commit]:https://github.com/odoo-dev/odoo/commit/7180d948f084d4f68d1660cb884c95aaf41288fa closes odoo/odoo#100043 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Nov 16, 2022
-
-
Adrien Widart (awt) authored
It is not possible to consume a component tracked by serial that comes back from a scrap location To reproduce the issue: 1. In Settings, enable "Multi Routes" 2. Create two storable products P_compo, P_finished - P_compo is tracked by serial number 3. Update the on-hand qty of P_compo: - 1 x P_compo with serial SN 4. Process a manufacturing order MO: - Product: P_finished - Compo: 1 x P_compo with SN 5. Unbuild P_finished - It brings SN back to stock 5. Scrap one P_compo with SN 6. Unscrap it (thanks to an internal transfer) 7. Repeat step 4 Error: a user error is raised: "The serial number SN used for component P_compo has already been consumed" When checking the SN uniqueness of a component, we don't consider the case where a product came back from a srap location OPW-3055252 closes odoo/odoo#105861 X-original-commit: ac11b7e0 Signed-off-by:
William Henrotin (whe) <whe@odoo.com> Signed-off-by:
Adrien Widart <awt@odoo.com>
-
Adrien Widart (awt) authored
When marking a WO as done, if the serial number defined is related to an unbuilt product, an error will be raised and the user will not be able to mark the WO as done To reproduce the issue: 1. Create a BoM for product P with one operation - P is tracked by SN 2. Produce one P with serial S 3. Unbuild it 4. Create and confirm a second MO with 1 x P 5. Start the WO 6. On tablet view, set the finished lot to S 7. Mark the WO as done Error: a UserError is raised because "This serial number [...] has already been produced". However, this serial number has been unbuilt so the worker should be able to use it again When marking the WO as done, we check the uniqueness of the defined serial number. But: - The check is not accurate enough, hence the above error - The lot of the WO is a computed/inverse field based on lot of the MO - Once the WO closed, we can still change the lot of the MO - When marking the MO as done, a better method checks the SN uniqueness (does not fail in the above case) Therefore, the checking on WO side is useless. We should let the MO side handle this. Moreover, let's say that there is already one P in stock with serial S2. On tablet view, if the worker set the lot to S2, there should be a warning so he can be aware of the situation. This is already the case on MO side: https://github.com/odoo/odoo/blob/45e37b2ad7bdcfd9f9f7e1dabbd0a99c9a0b5cdc/addons/mrp/models/mrp_production.py#L694-L705 (This commit is linked to a similar commit OE side, same opw) OPW-3002424 closes odoo/odoo#105860 X-original-commit: 402dfd0a Related: odoo/enterprise#33999 Signed-off-by:
Tiffany Chang <tic@odoo.com> Signed-off-by:
Adrien Widart <awt@odoo.com>
-
Nicolas Bayet authored
Before this commit, once a user was disconnected from internet (eg. network failure, laptop screen closed), the code disconnected the user from the peer to peer network and upon reconnection to the internet network, the code did not try to reconnect to the peer to peer network. This created a network partion in the peer to peer network each time a user disconnected and reconnected to the internet network. When there is a partition in the peer to peer network, the last subnet to write to the record erased the changes of another subnet without notification. This commit prevent the code to disconnect from the peer to peer network when there is any disconnection signal triggered. closes odoo/odoo#105857 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Cao Đình Trung authored
Steps to reproduce the error: - Install 'Maintenance' - Select 'Maintenance' -> 'Request Maintenance' - Create a maintenance request: + TH1: Save > Change stage to Repaired > 'Close date' = Date.Today() + TH2: Don't Save > Change stage to Repaired > Save > 'Close date' = blank closes odoo/odoo#105741 Problem: App will show 'Close Date' blank Expected: App will display 'Close Date' as Date.Today() Solution: When Click on Save button -> Automatically get current date as end date X-original-commit: badc4ace Signed-off-by:
Arnold Moyaux (arm) <arm@odoo.com>
-
damr authored
In rating/controllers/main.py, the method action_submit_rating accepts only post request. This creates a problem when you're trying to use the web editor on the template as well as when you just paste the url in your browser, for those are get request. The current behavior is a crash with 'method not allowed'. This commit's purpose is to change the method so it also accept get request. The use case of editing the feedback rating page is arguable but it schould not crash. The behavior after this commit is that the web editor is enable for the page, and relaoding the page does not crash anymore. task-3047893 closes odoo/odoo#105868 X-original-commit: d8f3c941 Signed-off-by:
Laurent Stukkens (ltu) <ltu@odoo.com>
-
Adrien Widart (awt) authored
A commit [1] has recently be added to fix an issue. It actually fixes another issue too: 1. Create a product P - Storable - With one packaging PK for 10 x P 2. Create and confirm a PO - Order Lines: - 10 x P with PK 3. On the PO, decrease the quantity of P to 8 Without [1], a return is created for the difference. With [1], the existing picking is correctly updated. This commit adds a test to protect the use case. [1] 20fa7c6f OPW-3027110 closes odoo/odoo#105430 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Adrien Widart (awt) authored
When decreasing the qty of a SOL, if there is already a packaging defined, a return will be created for the difference To reproduce the issue: 1. Create a product P - Storable - With one packaging PK for 10 x P 2. Create and confirm a SO - Order Lines: - 10 x P with PK 3. On the SO, decrease the quantity of P to 8 Error: a return is created for the difference. Instead, the existing picking should be updated At some point, we try to merge the stock moves (`10 x P` and `-2 x P`) and, to do so, they must have the same `product_packaging_id`: https://github.com/odoo/odoo/blob/08f53ffa30479cfb452ebaed61b42655eb0e6a95/addons/stock/models/stock_move.py#L808-L813 However, on the SO, when decreasing the quantity, an onchange tries to find the best packaging. Because the new quantity is not a multiple of PK, this one is not returned. As a result, the SO has no more packaging and so does the new stock move (`-2 x P`). Therefore, the stock moves can not be merged and a new picking (the return) is created. This commit updates the onchange method so it behaves the same way as purchase side: https://github.com/odoo/odoo/blob/20fa7c6f0f5c9cdfae2519ea8d0ff849d7fa3b9e/addons/purchase/models/purchase.py#L1224-L1231 In this onchange, the same diff has recently be added for another reason (see [1]) [1] 20fa7c6f OPW-3027110 Part-of: odoo/odoo#105430
-
Nshimiyimana Séna authored
### Steps to reproduce * install the *VAT Number Validation `(base_vat)`* and Contacts module. * Create a new contact from San Marino and set their Tax Id to SM05426 * Save the contact You should see that the leading zeros have been removed on the Tax Id (here, SM05426 became SM5426) opw-3007722 closes odoo/odoo#105822 X-original-commit: 24207914 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Adrien Widart (awt) authored
When returning a dropshipped and subcontracted product to the supplier location, the received quantity of the PO line will be incorrect To reproduce the issue: 1. Create two storable products P_compo, P_Finished 2. Create a BoM: - Product: P_finished - Type: Subcontracting - Subcontractors: a subcontractor S - Components: 1 x P_compo 3. Create and confirm a PO: - Vendor: S - Deliver To: Dropship - Drop Ship Address: a partner P - Products: 1 x P_finished 4. Validate the receipt 5. Create a return with 1 x P_finished: - Update SO/PO quantities: True - Return Location: Partner Locations/Vendors 6. Validate the return 7. Go back to the PO Error: The qty received is 2, it should be 0 There is currently no code to handle the return of a dropshipped product OPW-3030895 closes odoo/odoo#105793 X-original-commit: 8276a9b5 Signed-off-by:
William Henrotin (whe) <whe@odoo.com> Signed-off-by:
Adrien Widart <awt@odoo.com>
-
Adrien Widart (awt) authored
When returning a dropshipped and subcontracted product to an internal location, the received quantity of the PO line will be incorrect To reproduce the issue: 1. In Settings, enable "Storage Locations" 2. Create two storable products P_compo, P_Finished 3. Create a BoM: - Product: P_finished - Type: Subcontracting - Subcontractors: a subcontractor S - Components: 1 x P_compo 4. In Locations, edit WH/Stock: - Return location: True 5. Create and confirm a PO: - Vendor: S - Deliver To: Dropship - Drop Ship Address: a partner P - Products: 1 x P_finished 6. Validate the receipt 7. Create a return with 1 x P_finished: - Update SO/PO quantities: True - Return Location: WH/Stock 8. Validate the return 9. Go back to the PO Error: The qty received is 2, it should be 1 (it should not be 0 since the product has been returned to an internal location) In `/purchase_stock._compute_qty_received`, there is already a code to anticipate such a situation (i.e., a user who returns a dropshipped product to his stock location): https://github.com/odoo/odoo/blob/bf3c398f0644f690c64815b2b6e298aed7bedd70/addons/purchase_stock/models/purchase.py#L300-L305 However, the methods `_is_dropshipped` and `_is_dropshipped_returned` do not include the feature subcontracting + dropshipping. This is the reason why, in `_compute_qty_received`, the above condition is not respected and why we add the return stock move to the received qty. OPW-3030895 X-original-commit: 0486e2e5 Part-of: odoo/odoo#105793
-
CarmenMiranda authored
Splitting the method `_get_order_lines` will allow making it inheritable, this way more order line fields can be added and expand them easily and avoid having to overwrite it. closes odoo/odoo#105599 Signed-off-by:
Trinh Jacky (trj) <trj@odoo.com>
-
- Nov 15, 2022
-
-
Ahmad Khanalizadeh authored
Before this commit: when `Limited Products Loading` is enabled in PoS settings, and `Load all remaining products in the background` is disabled, the search bar only uses `name` to look for products to fetch from database. This causes problem when for example the user is using barcodes to identify products. To fix this, the search domain should be expanded to include all of the fields which are normally used when searching for products. opw-3055960 closes odoo/odoo#105748 Signed-off-by:
Masereel Pierre <pim@odoo.com>
-
Solan Delvenne (sode) authored
Pingen does not support localized country names, as such we need to force English locale. closes odoo/odoo#105176 X-original-commit: 006dcbf8 Signed-off-by:
Florian Daloze (fda) <fda@odoo.com>
-
Bruno Boi authored
Some missing aria attributes from 14.0 are reintroduced. They are required for screen reader users to be able to know if menus are opened and if menuitems are checked (e.g. if a filter is applied). closes odoo/odoo#105163 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Co-authored-by:
Luis González <lgonzalez@vauxoo.com>
-
Bruno Boi authored
Dropdown menus/items were refactored and moved to OWL when migrating to 15.0. Now, the focus is always on the dropdown button, which captures and handles all keyboard events, to be able to move over the menus. Currently-selected item is highlighted by toggling classes. However, since the focus is always on the dropdown button, screen reader users are no longer able to know what menu item is being selected, as it's only a visual change (in previous versions, the focus actually moved to the selected element). The above is fixed by making the activeElement follow the visual change. Part-of: odoo/odoo#105163 Co-authored-by:
Luis González <lgonzalez@vauxoo.com>
-
gawa-odoo authored
There are specific accounts that should be used for tax groups for each version of the CoA t-3059059 closes odoo/odoo#105736 X-original-commit: 453cf0b6 Signed-off-by:
John Laterre (jol) <jol@odoo.com> Signed-off-by:
Wala Gauthier (gawa) <gawa@odoo.com>
-
Nikhilkrishnan authored
closes odoo/odoo#86322 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Aungkokolin1997 authored
closes odoo/odoo#103409 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Thomas Lefebvre (thle) authored
Steps to reproduce: - install the "Extended Adresses" module; - in the configuration menu --> countries, edit the street format for Belgium to " %(street_name)s" (with whitespaces) - create a new contact; - select a contact suggested by the auto complete feature (for example Odoo) Issue: Some letters are removed if we add whitespaces in the street format (street_name field has the value "e du Laid Burniat 5" instead of "Rue du Laid Burniat 5"). Cause: The function which splits the raw address taking into account heading characters. Therefore the function truncates whatever is in front of the first field of the street format which is normally the image of the address (street_raw). Example 1: (correct use) street_raw = "header Rue du Laid Burniat 5" street_format = "header %(street_name)s" street_name = "Rue du Laid Burniat 5" --> OK (format address is properly configured to match with street_raw) Example 2: (incorrect use but desired behavior) street_raw = "Rue du Laid Burniat 5" street_format = "header %(street_name)s" street_name = "Laid Burniat 5" --> truncation is expected (7 leading characters are removed) (format address is not properly configured to match with street_raw) Example 3: (incorrect use and unwanted behavior) street_raw = "Rue du Laid Burniat 5" street_format = " %(street_name)s" street_name = "ue du Laid Burniat 5" --> truncation is not expected (1 leading character is removed) (format address is "properly" configured but with whitespace) Solution: Remove whitespaces before street format when editing this field to prevent truncation of the field value. opw-2964457 closes odoo/odoo#105568 X-original-commit: a6e8e0f6 Signed-off-by:
Quentin De Paoli <qdp@odoo.com> Signed-off-by:
Lefebvre Thomas (thle) <thle@odoo.com>
-
Solan Delvenne (sode) authored
Fixes a small but massive typo that prevents snailmail from working on version 14 to 15 closes odoo/odoo#105720 X-original-commit: dc3ed690 Signed-off-by:
Florian Daloze (fda) <fda@odoo.com> Signed-off-by:
Solan Delvenne (sode) <sode@odoo.com>
-
Javier Duran authored
closes odoo/odoo#103215 Signed-off-by:
Trinh Jacky (trj) <trj@odoo.com>
-
- Nov 14, 2022
-
-
maximilien(malb) authored
The account 81 to 89 were misclassified, this PR fix the issue closes odoo/odoo#104074 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Audric Onockx (auon) authored
Steps : Go to project > settings. Check 'timesheet' config and save. Uncheck it back and save. Issue : See errors in the logs, due to on delete restrict. Cause : Record 'hr_timesheet.internal_project_default_stage' from data is deleted when hr_timesheet is uninstalled. Yet some project task records still use it, so we can't delete it. Fix : Delete the corresponding ir.model.data to keep the stage, but unlink it from the 'hr_timesheet.internal_project_default_stage' ref. task-2998416 closes odoo/odoo#101633 Related: odoo/enterprise#32022 Signed-off-by:
Laurent Stukkens (ltu) <ltu@odoo.com>
-
Audric Onockx (auon) authored
Steps: Go to project > settings. Make sure 'timesheet' option is checked. Uncheck it and save. Issue: After loading, it is set back. Cause: In ResCongifSettings.execute()... First the expected modules are uninstalled. Then 'industry_fsm_sale' is in to_install (??), so it is installed back, whiches makes no difference with the original state. Fix: Not that the issue appears before 15.3, because with https://github.com/odoo/odoo/pull/83104/commits/216aa6f27d9c3b68d334f79c1597c8073cd5adbf resolves it. This commit backports it to 15.0. task-2998416 Part-of: odoo/odoo#101633
-
niyasraphy authored
closes odoo/odoo#105666 X-original-commit: c3706f5c Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Ivan Yelizariev authored
Model `account.move.line` has extended `_name_search` to clarify `ilike` search. However, the new domain replaces original domain, instead of making a friendship. STEPS: * add custom Many2one field to any form (e.g. SO) * add domain for the field, e.g. ` [["parent_state", "!=", "draft"]]` * try quick search for the new field opw-3037878 closes odoo/odoo#105572 X-original-commit: 8966d802 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Benoit Socias authored
Upon updates, the `active` field of `ir.ui.view` behaves differently depending on whether the view is defined by using the `<template>` tag or the `<record>` tag. When using `<record>`, it behaves like any other field and gets updated with the new value (notice that for qweb view, you should rarely rely on this as if users customized those views with the website builder, they are duplicated (COW)... updating the active field without migration script would then be a source of errors). When using `<template>`, it is not updated since [1], except for new records since [2]. This commit adds a comment to the `active` field to help developers find out about this difference. See this [discussion]. [1]: https://github.com/odoo/odoo/commit/2d296cb77922d33be2dc45b900191fac34bda429#diff-175c28787c272a219b9275f79262a48af9aa029e718f45077fd609737559e84eR803-R804 [2]: https://github.com/odoo/odoo/commit/f1c70d4cc943ac4eb81a85a9dc005de34cd2060a#diff-175c28787c272a219b9275f79262a48af9aa029e718f45077fd609737559e84eR801-R804 [discussion]: https://github.com/odoo/odoo/pull/104836#discussion_r1013155860 Related to task-2963840 closes odoo/odoo#105591 X-original-commit: 454a47fd Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by:
Benoit Socias (bso) <bso@odoo.com> Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
niyasraphy authored
closes odoo/odoo#105640 X-original-commit: 68f29fda Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Shawcker authored
Backport of 747ac40b Currently the test in stock_account/tests/test_stockvaluationlayer.py for Anglo-Saxon accounting is slightly wrong as it uses a company that can change depending on which l10n is installed (mainly coming from the company's country_id and account_fiscalcountry_id). This means that the test might be running with different settings from one time to another (= non-deterministic) and fail in some circumstances. This commit fixes this issue by making this test an AccountTestInvoicingCommon test instead. This allows for the use of a test company, always the same. Of course, a few items have to be re-created since they can't be inherited anymore. closes odoo/odoo#105205 Signed-off-by:
Quentin De Paoli <qdp@odoo.com>
-
Walid HANNICHE (waha) authored
Steps to reproduce: - create an event with a single ticket that has a description Bug: The default quantity on the website is set to 0 where it should be 1 Cause: On this commit[1] adding description to a single ticket was done by applying the multiple tickets layout but this also sets qty to 0 Fix: removed the condition and added the description to the single ticket opw-3018139 [1]:https://github.com/odoo/odoo/commit/9c4c953d004acaf916df348b670182b48b85d165 closes odoo/odoo#104399 Signed-off-by:
Walid Hanniche (waha) <waha@odoo.com>
-
Gert Pellin authored
closes odoo/odoo#105526 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
- Nov 13, 2022
-
-
Odoo Translation Bot authored
-
- Nov 11, 2022
-
-
Olivier Dony authored
The `lang` value returned by this route was not always consistent with returned translations: when `lang` is not activated on the database, the translations defaults to the session language instead. To be consistent, return `lang_parameters["code"]` instead, so that both values match. closes odoo/odoo#105563 Signed-off-by:
Olivier Dony <odo@odoo.com>
-
- Nov 10, 2022
-
-
qsm-odoo authored
Using the "gps picker" (for example with the "Google Map" snippet) was not flawless. The autocomplete menu which shows up when the user enters an address is handled by the gmap API. It was actually not working at all on Firefox for an unknown reason. Not listening to blur events on the input seems to solve the issue. This commit also prevents triggering a value change if the same address is reselected which seems to make address changes a bit more robust too. opw-2976261 closes odoo/odoo#105485 X-original-commit: 50bf0b7f Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-