Daily updates from Odoo
Thursday, November 21, 2024
20 changes · master
Enhancements to existing features
Time off categories provided by localization modules are kept available globally instead of being tied to a single country. This avoids disrupting existing leave records and allocations that may already use those categories across multiple countries, while supporting the new country-based filtering capability.
Original PR description
Currently, when you try to take a time off, you'll have the list of all time off types, cause there is no field "country" on the leave type. So, if you have "sick leave" in belgium, "sickness" in US and "sick holiday" in India, you'll see the three of them. A field country_id was created on hr_leave_type model [in odoo community](https://github.com/odoo/odoo/pull/169147) to fix this issue. This commit sets the country_id to False on the time off types defined in L10N modules. Setting the country_id on the time-off types defined in L10N modules to their corresponding countries would cause issues. That is because the time-off type records in L10Ns might be already used by allocations/leaves from multiple countries. task-3978260
The point of sale restaurant preparation flow now includes added automated checks for customer and internal notes on orders. This helps ensure note information is correctly handled and reduces the risk of regressions in restaurant operations.
Original PR description
Add new steps in existing tour to test the customer & internal notes on order. task-ids: 4247230, 4167563 community PR : https://github.com/odoo/odoo/pull/186922
Tax selection fields now show the tax scope more consistently across accounting and Ecuador localization screens. This helps users choose the correct tax more confidently and reduces the risk of selecting the wrong option.
Original PR description
Before this **PR**: Tax fields in some modules were not showing tax scope during the tax selection. After this **PR**: Tax fields are now consistent and displays tax scope during tax selection. **task**-4184119 **Community PR**: https://github.com/odoo/odoo/pull/184073
Helpdesk ticket views now show tickets without an assigned user under “Unassigned” instead of “None” when grouped by assignee. This makes ticket lists, kanban boards, and reports easier to understand and aligns the wording with project tasks.
Original PR description
When grouping tickets by assignees, let's rename the group of unassigned tickets to 'Unassigned' instead of 'None'. Like it is the case for tasks. task-4319577
Point of Sale payment method setup is streamlined by letting users enter shared provider details once and reuse them automatically. Online payment methods are now created through a clearer payment type choice, reducing repeated data entry and configuration effort.
Original PR description
pos_*: pos_iot, pos_iot_six, pos_settle_due, pos_urban_piper Before this commit: ========== - Users had to add common field values for the same provider-based method multiple times, which was time-consuming. - There is a boolean field called `is_online_payment` used to indicate whether an online payment method is being created. After this commit: ========== - Users only need to add common field values once. After that, common field values are automatically populated, saving time when creating payment methods. - The `is_online_payment` field has been removed from `pos.payment.method`. The selection value `Online` has been added to create an online payment method. Related PR: Community: https://github.com/odoo/odoo/pull/175119 Upgrade: https://github.com/odoo/upgrade/pull/6329 task-3506646
Users can now link chart titles and axis labels to spreadsheet cells, so chart text updates from the data source instead of being typed manually. This makes spreadsheet charts easier to maintain and keeps reports more consistent when values or labels change.
Original PR description
## Description - Now users can select a cell to set the chart title. This works for any chart type. Task: [3693157](https://www.odoo.com/web#id=3693157&cids=2&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form)
Appointment booking data and customer handling were cleaned up to make the experience more reliable and easier to maintain. Demo content and test coverage were improved, including clearer appointment questions and booking flows, helping teams validate the customer booking process with more confidence.
Resolved issues and error corrections
This fix ensures planning schedule template calculations work correctly when several records are processed at once. It helps avoid incorrect or incomplete planning data in batch operations, improving reliability for teams managing schedules.
Original PR description
Template compute methods do not support properly recordsets and work for a single record. The goal here is to handle more than one record at a time.
Miscellaneous changes
Tests should not be imported in module init. The import is done when tests are enabled. Forward-Port-Of: odoo/enterprise#73975
Original PR description
Tests should not be imported in module init. The import is done when tests are enabled. Forward-Port-Of: odoo/enterprise#73975
Reproduce: 1. Add the context key `search_default_my_documents_filter` in Documents action context 2. Go in a folder where a document exist that does not match this filter 3. Copy the url of this document (copy url when it is selected) 4. Paste in navigation bar (or refresh page) 5. You do not end up on the document because the default filter still applied This commit prevents loading default filters when we come from such URLs. While we're here, we remove the check on open_previe
Original PR description
Reproduce: 1. Add the context key `search_default_my_documents_filter` in Documents action context 2. Go in a folder where a document exist that does not match this filter 3. Copy the url of this document (copy url when it is selected) 4. Paste in navigation bar (or refresh page) 5. You do not end up on the document because the default filter still applied This commit prevents loading default filters when we come from such URLs. While we're here, we remove the check on open_preview which was incorrect (e.g., requests and urls have no preview but should be accessible this way too). Follow-up of https://github.com/odoo/enterprise/commit/3418e7318ed993abc2a601ae601e7214e28293a3 (https://github.com/odoo/enterprise/pull/74028) Task-4342960 Forward-Port-Of: odoo/enterprise#74163
This commits makes the redirect button label mandatory when there is a specified redirect URL. It also improves the hiding of the redirect label field when there is no redirect URL specified. task-4174120 Forward-Port-Of: odoo/enterprise#74109 Forward-Port-Of: odoo/enterprise#69866
Original PR description
This commits makes the redirect button label mandatory when there is a specified redirect URL. It also improves the hiding of the redirect label field when there is no redirect URL specified. task-4174120 Forward-Port-Of: odoo/enterprise#74109 Forward-Port-Of: odoo/enterprise#69866
Add the picking name as a reference number on ups shipment. [opw-3930816](https://www.odoo.com/odoo/project/49/tasks/3930816) Forward-Port-Of: odoo/enterprise#67303
Original PR description
Add the picking name as a reference number on ups shipment. [opw-3930816](https://www.odoo.com/odoo/project/49/tasks/3930816) Forward-Port-Of: odoo/enterprise#67303
This commit applies the following changes to the rename folder dialog: - change dialog title: "Odoo" -> "Rename" - remove the label of the "name" field - change the save btn title: "Save" -> "Rename" task-4305976 Forward-Port-Of: odoo/enterprise#73219
Original PR description
This commit applies the following changes to the rename folder dialog: - change dialog title: "Odoo" -> "Rename" - remove the label of the "name" field - change the save btn title: "Save" -> "Rename" task-4305976 Forward-Port-Of: odoo/enterprise#73219
After the sign's app OWL upgrade, the guidance dialog's ('Click to start', 'Fill in', etc...) font got unformatted from Helvetica to Times New Roman. Additionally, the sign elements were tooking too long to render, making the user experience also slow. This commits restores the original font for the guidance dialogs and also decrease the rendering refresh from 2s to 500ms for providing a smoother user experience. task-4147887 Forward-Port-Of: odoo/enterprise#73563 Forward-Port-Of: odoo/en
Original PR description
After the sign's app OWL upgrade, the guidance dialog's ('Click to start', 'Fill in', etc...) font got unformatted from Helvetica to Times New Roman. Additionally, the sign elements were tooking too long to render, making the user experience also slow.
This commits restores the original font for the guidance dialogs and also decrease the rendering refresh from 2s to 500ms for providing a smoother user experience.
task-4147887
Forward-Port-Of: odoo/enterprise#73563
Forward-Port-Of: odoo/enterprise#69146### Steps to reproduce: - Create a delivery order for 5 units of a product - Scan 1 unit and click on the pencil icon to edit the record further - On the digipad access the backend (for instance by clicking the external link arrow next to the location). - Come back to the record #### > The line now displayed a 1/1 but does not records what remains: 0/4. ### Cause of the Issue: Setting a quantity of 1 on the move line will trigger a write call on the related stock move line to update
Original PR description
### Steps to reproduce: - Create a delivery order for 5 units of a product - Scan 1 unit and click on the pencil icon to edit the record further - On the digipad access the backend (for instance by…
### Steps to reproduce: - Create a delivery order for 5 units of a product - Scan 1 unit and click on the pencil icon to edit the record further - On the digipad access the backend (for instance by clicking the external link arrow next to the location). - Come back to the record #### > The line now displayed a 1/1 but does not records what remains: 0/4. ### Cause of the Issue: Setting a quantity of 1 on the move line will trigger a write call on the related stock move line to update its quantity. However, when you leave the barcode, even thought it will save these change, it will not split the move in 2 for the barcode app to be able to rely on the backend data to generate a correct sate of the record. Threfore, when you come back to the record, the main component will be regenerated from the backend values of the `get_barcode_data`: https://github.com/odoo/enterprise/blob/7b28f4bbd3c20559e529c3134e5b65b089b78806/stock_barcode/static/src/components/main.js#L76-L80 And will onlydisplay the "1/1" line that was reported fromt he back end. ### Fix: The `split_uncompleted_moves` method taking care of splitting the moves for barcode data compatibility: https://github.com/odoo/enterprise/blob/7b28f4bbd3c20559e529c3134e5b65b089b78806/stock_barcode/models/stock_move.py#L9-L11 is already called when you exit the barcode via the exit button: https://github.com/odoo/enterprise/blob/7b28f4bbd3c20559e529c3134e5b65b089b78806/stock_barcode/static/src/components/main.js#L228-L231 https://github.com/odoo/enterprise/blob/7b28f4bbd3c20559e529c3134e5b65b089b78806/stock_barcode/static/src/models/barcode_picking_model.js#L762-L765 These were added by commit 2eb6465e4f18c701efdf28ea4b8f95f3119d3db8 However, it should IMO be called every time you leave the app that is just before destroying the component. Furthermore, note that it will only split the moves if a save happend (which is the expacted behavior). opw-4232106 --- Forward-Port-Of: odoo/enterprise#73909 Forward-Port-Of: odoo/enterprise#72453
The aim of this commit is to allow detection of tax report that still need to be send easily by putting back the tax report to be sent activity that was deleted by commit 7bace07feea5 It also make sure those activities exists before using them to ensure the feature works even without updating the module. Context: The deletion of that activity makes this detection much harder and removes the possibility to know if was sent or not. Before the commit: It is impossible to know if a tax re
Original PR description
The aim of this commit is to allow detection of tax report that still need to be send easily by putting back the tax report to be sent activity that was deleted by commit 7bace07feea5 It also make sure those activities exists before using them to ensure the feature works even without updating the module. Context: The deletion of that activity makes this detection much harder and removes the possibility to know if was sent or not. Before the commit: It is impossible to know if a tax report has been sent or not. After the commit: The tax report to be sent can be found easily by looking for the tax report to be sent activity. We can assume the tax report was sent once the activity has been deleted. task-id: 4292304 Forward-Port-Of: odoo/enterprise#74185 Forward-Port-Of: odoo/enterprise#73615
With this commit, by default, The gantt view and list view don't dispayed archived employees. task-4208052 Forward-Port-Of: odoo/enterprise#70706
Original PR description
With this commit, by default, The gantt view and list view don't dispayed archived employees. task-4208052 Forward-Port-Of: odoo/enterprise#70706
**Issue:** Two different actions have the same shortcut making one action impossible to reach. **Expected:** Different actions should have different keyboard shortcuts. **Steps to reproduce:** - Activate Subscription app; - Open an existing subscription; - Press `ALT` (`CTRL` on MacOS) to display all shortcuts and look at the `UPSELL` and `CLOSE` buttons. **Cause:** The same `data-hotkey` has been used for both buttons. **Fix:** Change the `UPSELL` button shortcut to `ALT+E` (
Original PR description
**Issue:** Two different actions have the same shortcut making one action impossible to reach. **Expected:** Different actions should have different keyboard shortcuts. **Steps to reproduce:** - Activate Subscription app; - Open an existing subscription; - Press `ALT` (`CTRL` on MacOS) to display all shortcuts and look at the `UPSELL` and `CLOSE` buttons. **Cause:** The same `data-hotkey` has been used for both buttons. **Fix:** Change the `UPSELL` button shortcut to `ALT+E` (`CTRL+E` on MacOS) as for Odoo 17. opw-4306179 Forward-Port-Of: odoo/enterprise#74136 Forward-Port-Of: odoo/enterprise#73548
``_try_to_check_ocr_status`` method attempts to check the OCR status for a record, If an exception occurs during this process, It will log an error. Error: ``` Couldn't check OCR status of hr.expense with id 1: 'currency_id' ``` This commit changes the log level from an error to a warning. This helps reduce noise in the logs by preventing excessive error messages. sentry-4597345306 Forward-Port-Of: odoo/enterprise#73817
Original PR description
``_try_to_check_ocr_status`` method attempts to check the OCR status for a record, If an exception occurs during this process, It will log an error. Error: ``` Couldn't check OCR status of hr.expense with id 1: 'currency_id' ``` This commit changes the log level from an error to a warning. This helps reduce noise in the logs by preventing excessive error messages. sentry-4597345306 Forward-Port-Of: odoo/enterprise#73817
We adjust the account import mechanism to the new reality that accounts can now be shared between companies, and have different codes in different companies. - The `code` column is now no longer required. Users can reference an account by its code in the current company (in which case only the account with that code that belongs to the current company will be matched), but can also reference an account by its external ID or database ID. - The user can import a code mapping for accounts via t
Original PR description
We adjust the account import mechanism to the new reality that accounts can now be shared between companies, and have different codes in different companies. - The `code` column is now no longer required. Users can reference an account by its code in the current company (in which case only the account with that code that belongs to the current company will be matched), but can also reference an account by its external ID or database ID. - The user can import a code mapping for accounts via the `code_mapping_ids/company_id` and `code_mapping_ids/code` columns. We add a check that both of these columns must be simultaneously present. Community PR: https://github.com/odoo/odoo/pull/183695 task-4247869 Forward-Port-Of: odoo/enterprise#71910