Daily updates from Odoo
Navigate
Branch
Monday, November 7, 2022
20 changes
Security fixes and vulnerability patches
This update tightens how elevated access is used in accounting consolidation and intercompany rule processes. It reduces the chance of unintended data access or side effects while preserving existing business workflows.
Enhancements to existing features
Users now see a warning when they try to merge timesheet entries that are linked to time off, helping prevent accidental changes. The dialog also includes a button to view the related time off records, and a related merge error from the timesheet list view has been fixed.
Original PR description
This PR add redirect warning dialog when user try to merge time off related timesheets and add view time off button in that dialog which redirect user to time off's that are related to that timesheets. task-2888607
This update removes unintended leading spaces that were recently introduced in Knowledge and VoIP interface files. The change helps keep labels and on-screen text looking consistent and polished for users, with no functional impact expected.
Original PR description
Remove leading whitespaces introduced in 85ec2e4588464e7100c5315bbeef5af30daf4000
This update simplifies how several Odoo apps retrieve record identifiers, replacing an unnecessarily complex lookup method with a simpler equivalent. The change should make the affected areas easier to maintain without changing day-to-day user workflows.
Original PR description
Reading only 'id' with `search_read` is equivalent to use `search` but complexify the result usage. Fix all these bad usages. Co-authored-by: Julien Castiaux <juc@odoo.com> https://github.com/odoo/odoo/pull/104838
Norwegian financial reports now include extra checks to help spot accounts that are missing or incorrectly included. This makes it easier to identify configuration issues early and improves confidence in balance sheet and profit and loss reporting.
Original PR description
In order to detect more quickly and easily misconfiguration in financial reports, we are adding control domains on them which will let us know when there are either missing accounts, or accounts that shouldn't be there. Task id #2585627
Resolved issues and error corrections
Manufacturing orders now follow the selected backorder rule on their operation type, such as never, always, or ask. This makes production backorder handling more predictable and aligned with business configuration.
Original PR description
**Current behavior before PR:** The option on the operation type to select the way in which backorders should be generated (never, always, ask) does not work for the Manufacturing Operation type. **Desired behavior after PR is merged:** The option on the operation type to select the way in which backorders should be generated will work for the Manufacturing Operation type. **Links:** Task-2918994
The Planning configuration now hides the working time field for materials when flexible hours are enabled. This prevents users from seeing or being required to fill in a field that does not apply, reducing confusion during setup.
Original PR description
…ble hours Before this commit, planning > configuration > materials: 'working time' value was visible when 'flexible hours' were true After this commit, 'working time' will be hidden when flexible hours' is true task-2979890
Code cleanup and technical improvements
This change cleans up obsolete styling in the Enterprise web interface, including pivot view mobile and renderer styles. It should have no visible functional impact, but helps keep the codebase leaner and easier to maintain.
Miscellaneous changes
When deleting an a draft asset, all related entries are deleted. Even posted ones. This commit will make sure that you cannot delete a draft asset if there are any posted entries related to it. Task id #2334349. Manual forward port of 308a0670c6babd2d42bd62 Was PR #13012 Forward-Port-Of: odoo/enterprise#33703
Original PR description
When deleting an a draft asset, all related entries are deleted. Even posted ones. This commit will make sure that you cannot delete a draft asset if there are any posted entries related to it. Task id #2334349. Manual forward port of 308a0670c6babd2d42bd62 Was PR #13012 Forward-Port-Of: odoo/enterprise#33703
added scss to correctly resize the placeholder image and also force the "take a picture" button to always appear to allow tablet users to see it task 2985735 Forward-Port-Of: odoo/enterprise#33648
Original PR description
added scss to correctly resize the placeholder image and also force the "take a picture" button to always appear to allow tablet users to see it task 2985735 Forward-Port-Of: odoo/enterprise#33648
There is an issue with the followup status, where an invoice is set as overdue when the due date is today. It shouldn't be overdue in such a case. When attaching invoices to a followup letter (manually, via the wizard), every invoice is attached. We should only attach invoices that are actually selected. The same goes for automatic reminders, only invoices that have already been sent/printed should be attached. This commit fixes these 3 issues and also improves the layout of the followup wiza
Original PR description
There is an issue with the followup status, where an invoice is set as overdue when the due date is today. It shouldn't be overdue in such a case. When attaching invoices to a followup letter (manually, via the wizard), every invoice is attached. We should only attach invoices that are actually selected. The same goes for automatic reminders, only invoices that have already been sent/printed should be attached.
This commit fixes these 3 issues and also improves the layout of the followup wizard and the followup level views view (mainly reordering fields, to better match the fix about attached invoices).
Special view changes:
- Followup levels list view: rename title (so its the same name as its menu item)
- Followup list view:
- Change default filter (display 'with overdue invoices' on top of 'in need of action')
- Reorder columns
- Followup form view: open invoice when clicking on it (widget)
Forward-Port-Of: odoo/enterprise#33296In the 'Add a Step' operation, the uploaded document is not correctly displayed in the relevant views. Not all required data items were transmitted and the 'Tablet' component did not fully handle those data items, especially with the PLM module installed. Since handling images would have required new fields, this functionnality will require a larger refactor and is deferred to master, which is why a filter on pdf files has been introduced. task: 2985735 Forward-Port-Of: odoo/enterprise#3
Original PR description
In the 'Add a Step' operation, the uploaded document is not correctly displayed in the relevant views. Not all required data items were transmitted and the 'Tablet' component did not fully handle those data items, especially with the PLM module installed. Since handling images would have required new fields, this functionnality will require a larger refactor and is deferred to master, which is why a filter on pdf files has been introduced. task: 2985735 Forward-Port-Of: odoo/enterprise#33597
This PR fixes various bugs in Version 16.0 task-3034048 Forward-Port-Of: odoo/enterprise#32980
Original PR description
This PR fixes various bugs in Version 16.0 task-3034048 Forward-Port-Of: odoo/enterprise#32980
Forward-Port-Of: odoo/enterprise#33656
Original PR description
Forward-Port-Of: odoo/enterprise#33656
This PR adapts colors of the select2 component for the dark mode. Requires: - https://github.com/odoo/odoo/pull/103042 task-2710677 Forward-Port-Of: odoo/enterprise#32694
Original PR description
This PR adapts colors of the select2 component for the dark mode. Requires: - https://github.com/odoo/odoo/pull/103042 task-2710677 Forward-Port-Of: odoo/enterprise#32694
Since [1] a non-existing `content` field was used to populate the `body` information of search results about `knowledge.article`. It made the search snippet crash (if set to search in everything) and impossible to be used anymore if you had website_knowledge installed. Also, its URL was not fetched, making the search result lead to the current page. This commit gets the body data from the `body` field and fetches the `website_url` field so that the search result links can be clicked on.
Original PR description
Since [1] a non-existing `content` field was used to populate the `body` information of search results about `knowledge.article`. It made the search snippet crash (if set to search in everything) and impossible to be used anymore if you had website_knowledge installed. Also, its URL was not fetched, making the search result lead to the current page. This commit gets the body data from the `body` field and fetches the `website_url` field so that the search result links can be clicked on. This PR also includes adaptations to match the revert in https://github.com/odoo/odoo/pull/104962. [1]: https://github.com/odoo/enterprise/commit/18b643e72dc5713f79f501b0d972452b07457f49 opw-3045092 Forward-Port-Of: odoo/enterprise#33585
The scheduled end date of a work order is not consistent with its scheduled start date when starting the work order Steps to reproduce: 1. Install Manufacturing 2. Go to Settings > Manufacturing > Operations and enable Work Orders 3. Create a manufacturing order for any product, with any component and a work order 4. Confirm and plan the MO 5. Edit the scheduled start date of the work order to the next working day and save 6. Start the work order 7. The scheduled start date changes
Original PR description
The scheduled end date of a work order is not consistent with its scheduled start date when starting the work order Steps to reproduce: 1. Install Manufacturing 2. Go to Settings > Manufacturing > Operations and enable Work Orders 3. Create a manufacturing order for any product, with any component and a work order 4. Confirm and plan the MO 5. Edit the scheduled start date of the work order to the next working day and save 6. Start the work order 7. The scheduled start date changes but the scheduled end date doesn't Solution: When starting a work order, change the date_planned_finished according to the new date_planned_start opw-3005767 Forward-Port-Of: odoo/enterprise#33591 Forward-Port-Of: odoo/enterprise#32619
Before this commit, request timeout was 5s, which was too short for some sendcloud requests when returning large amounts of data. Forward-Port-Of: odoo/enterprise#32091
Original PR description
Before this commit, request timeout was 5s, which was too short for some sendcloud requests when returning large amounts of data. Forward-Port-Of: odoo/enterprise#32091
**Description of the issue/feature this PR addresses:** Create and delete button is visible for the sale.subscription.report model. As this is a dynamic model, created using query, there is no need to show the create and delete button. On clicking delete button error will be shown also. 1. Subscriptions -> Reporting -> Subscriptions 2. Switch to cohort view and click on any records. **Current behavior before PR:** create button is visible, delete button is visible. On clicking de
Original PR description
**Description of the issue/feature this PR addresses:** Create and delete button is visible for the sale.subscription.report model. As this is a dynamic model, created using query, there is no need to show the create and delete button. On clicking delete button error will be shown also. 1. Subscriptions -> Reporting -> Subscriptions 2. Switch to cohort view and click on any records. **Current behavior before PR:** create button is visible, delete button is visible. On clicking delete button, exception is raised  **Desired behavior after PR is merged:** create and delete buttons will not visible and form view cannot be opened. Forward-Port-Of: odoo/enterprise#33435
- Prevent mouse hover effect on Gantt total row in sample data - Fix the scrolling up/down Gantt header in mobile task-2948675 Forward-Port-Of: odoo/enterprise#33654 Forward-Port-Of: odoo/enterprise#31257
Original PR description
- Prevent mouse hover effect on Gantt total row in sample data - Fix the scrolling up/down Gantt header in mobile task-2948675 Forward-Port-Of: odoo/enterprise#33654 Forward-Port-Of: odoo/enterprise#31257