Daily updates from Odoo
Monday, March 11, 2024
16 changes · master
Enhancements to existing features
This update adapts many Enterprise apps to Odoo's new path-based web navigation. It makes default app pages and internal links work more reliably with the updated web client routing, reducing broken or inconsistent navigation after the platform change.
Original PR description
*: account_consolidation, appointment, approvals, data_merge, documents, documents_spreadsheet, frontdesk, helpdesk, hr_appraisal, hr_payroll, hr_referral, industry_fsm, industry_fsm_sale, iot,…
*: account_consolidation, appointment, approvals, data_merge, documents, documents_spreadsheet, frontdesk, helpdesk, hr_appraisal, hr_payroll, hr_referral, industry_fsm, industry_fsm_sale, iot, knowledge, marketing_automation, marketing_automation_crm, mrp_plm, mrp_workorder, quality_control, quality_mrp_workorder, room, sale_renting, sale_subscription, sign, social, social_youtube, spreadsheet_edition, stock_barcode, timesheet_grid, web_enterprise, web_mobile, web_studio, whatsapp The corresponding community commit overhauls the client-side routing in the web client to use path-based routing. This commit adapts some things in enterprise to benefit from this new feature. Notably it: - adds the "path" field on the default action for most apps - fixes some urls to start with a "/", these relative urls will no longer work since the path can contain more than one segment task-3557575 Co-authored-by: Samuel Degueldre <sad@odoo.com> Community: https://github.com/odoo/odoo/pull/142007
The India payroll payment advice screens have been made easier to use by reorganizing list fields, simplifying the name input, and highlighting the main creation action. This helps payroll users create and review payment advice more quickly and with less confusion.
Original PR description
We have done the following points: ----------------- - Rearrange the fields on the advice list view. - Remove the name title and add a placeholder. - Make the primary advice creation button. task-3679450
This update removes obsolete internal module markers from JavaScript files in accounting-related frontend code and tests. It does not change product behavior, but keeps the codebase cleaner and easier to maintain.
Original PR description
As the /* odoo-module */ statement isn't required anymore in both `static/src` and `static/tests` folders we can remove them.
Users can no longer create new company records directly from selected Planning and Helpdesk screens. This helps prevent accidental or duplicate company setup by requiring company creation through the proper process.
Original PR description
Disable on the fly creation for companies in some views: - `planning.slot.form`: Planning > List View > View Button - `helpdesk.team.form`: Helpdesk > Configuration > Helpdesk Teams > New - `resource.resource.tree`: Planing > Configuration > Materials task-3507965
Room booking notifications now include the specific room they relate to. This prevents booking pages for different rooms opened at the same time from reacting to each other’s updates, reducing inconsistent room booking displays.
Original PR description
Purpose: -------- The bus service uses a single websocket connection that is shared across multiple tabs. Therefore, sending a notification to one tab actually sends it to every tab. Currently, the notification type is the same regardless of which room sends it. Therefore if 2 (or more) different room frontend views are opened at the same time, they will both handle the same notification, even though it was only concerning one of the rooms, leading to inconsistent states. This commit adds the room id in the bus notifications types. This allows for the roomBookingView component to only listen for the notifications intended for its room. Task-3698135
The calendar event form now hides the appointment type field when it is not already set. This encourages users to configure appointment details through the dedicated Appointment Types flow, helping avoid confusing or inconsistent event setup.
Original PR description
While creating a calendar event record, different field duration, reminders, etc are expected to be filled with values **(when we select appointment type in the form view)** same manner as we create appointment type records via the front end. It's more effective to fill such field values directly from the Appointment Types (via the front end). so the appointment_type_id field is hidden when we create a calendar event record via form view. Task-3768152
Resolved issues and error corrections
Restores previously skipped mobile-related test coverage that was accidentally left out after an earlier change. This helps ensure mobile web behavior continues to be checked automatically and reduces the risk of regressions reaching users.
Original PR description
Some class relying on the inherited test side effect where forgotten during #148660 Enabling them again.
Copying a spreadsheet chart now preserves its link to the related Odoo menu. This prevents users from losing navigation context when duplicating charts, making copied spreadsheet content behave as expected.
Original PR description
## Task Description: When copying a chart in a spreadsheet, the link to the Odoo menu is not kept. This PR aims to fix it by taking advantage of the new clipboard refactoring,with a new clipboard handler saving the odooMenuLink in the clipboard data and putting it back in the newly created chart. ## Related Task: - Task: 3380568 - https://github.com/odoo/o-spreadsheet/pull/3670 (need to be merged to have the base class exported)
The Helpdesk website page now shows the "Optimize SEO" option in the Site menu again. This lets website managers adjust search engine settings for helpdesk pages, helping maintain visibility and consistency with earlier versions.
Original PR description
Description of the issue/feature this PR addresses: The "Optimize SEO" is missing in the site menu for the helpdesk page. It should be there (as before the v17) Current behavior before PR: The menu is missing Desired behavior after PR is merged: "Optimize SEO" menu available in the "Site" menu on the Helpdesk page To reproduce: Install website_helpdesk Go to the help page of the website, on the form fixes: opw-3766163
Miscellaneous changes
The button "insert in spreadsheet" added in the pivot view would display a tooltip of "0" when the button was active. The tooltip was only meant to be present when the button was disabled due to the presence of duplicated group bys in the pivot. This revision fixes the tooltip presence on the button and also removes a test that: - had a description that did not match the actual test - was in fact testing the same behaviour as another test -> useless redundancy Task: 3790072 Forward-Port
Original PR description
The button "insert in spreadsheet" added in the pivot view would display a tooltip of "0" when the button was active. The tooltip was only meant to be present when the button was disabled due to the presence of duplicated group bys in the pivot. This revision fixes the tooltip presence on the button and also removes a test that: - had a description that did not match the actual test - was in fact testing the same behaviour as another test -> useless redundancy Task: 3790072 Forward-Port-Of: odoo/enterprise#58323 Forward-Port-Of: odoo/enterprise#58160
…of SEPA Forward-Port-Of: odoo/enterprise#57981
Original PR description
…of SEPA Forward-Port-Of: odoo/enterprise#57981
Purpose: ------- If you open different frontend room booking views using the same browser profile, all rooms will receive and handle all bus notifications, which leads to rooms views showing bookings created for other rooms. This is due to the bus service using a single websocket connection that is shared across the different tabs. A simple workaround to display several frontend rooms views using one device consists in using different browser profiles. This commit adds a warning at the t
Original PR description
Purpose: ------- If you open different frontend room booking views using the same browser profile, all rooms will receive and handle all bus notifications, which leads to rooms views showing bookings created for other rooms. This is due to the bus service using a single websocket connection that is shared across the different tabs. A simple workaround to display several frontend rooms views using one device consists in using different browser profiles. This commit adds a warning at the top of the frontend view when several tabs are detected, that asks the user to close the other tabs . Task-3698135 Forward-Port-Of: odoo/enterprise#55018
Steps to reproduce ================== - Go to the barcode app - Click on "Batch transfers" - Open a record - Add a new product and confirm - Click on the pencil next to the newly added product - Click on the delete button => `Cannot read properties of undefined (reading 'suggested_package')` Cause of the issue ================== When deleting a line, it is removed from the state [0] Solution ======== We simply need to check that the line exists --- [0]: https://gi
Original PR description
Steps to reproduce ================== - Go to the barcode app - Click on "Batch transfers" - Open a record - Add a new product and confirm - Click on the pencil next to the newly added product - Click on the delete button => `Cannot read properties of undefined (reading 'suggested_package')` Cause of the issue ================== When deleting a line, it is removed from the state [0] Solution ======== We simply need to check that the line exists --- [0]: https://github.com/odoo/enterprise/blob/5ef4a85febcde0a690a71cb1886a8a74daf31f47/stock_barcode/static/src/models/barcode_model.js#L390 opw-3688415 Forward-Port-Of: odoo/enterprise#58341 Forward-Port-Of: odoo/enterprise#57691
This commit improves the '_get_social_stream_post' method to make it use a complete domain instead of relying on pathing through the stream, then the account, then the media (= 3 records fetch), to get the media type. This will save a lot of requests as it is a central method used in the controllers of all social media implementations. Forward-Port-Of: odoo/enterprise#58286
Original PR description
This commit improves the '_get_social_stream_post' method to make it use a complete domain instead of relying on pathing through the stream, then the account, then the media (= 3 records fetch), to get the media type. This will save a lot of requests as it is a central method used in the controllers of all social media implementations. Forward-Port-Of: odoo/enterprise#58286
Issue: ------ In the helpdesk application, when a timesheet is added to a helpdesk ticket, it does not have a commercial partner (we can add the field with studio to see this behaviour). There may be one if a commercial partner exists for the helpdesk project. This behaviour is contradictory to that found in project. Solution: --------- Add the `helpdesk_ticket_id` field invisibly in the view so that this field is in the fields to be updated with the onchange. It will be correctly up
Original PR description
Issue: ------ In the helpdesk application, when a timesheet is added to a helpdesk ticket, it does not have a commercial partner (we can add the field with studio to see this behaviour). There may be one if a commercial partner exists for the helpdesk project. This behaviour is contradictory to that found in project. Solution: --------- Add the `helpdesk_ticket_id` field invisibly in the view so that this field is in the fields to be updated with the onchange. It will be correctly updated during the onchange. Override the compute method to obtain the `commercial_partner_id` field in order to take the commercial partner from the helpdesk ticket and not from the task. opw-3759824 Forward-Port-Of: odoo/enterprise#58292 Forward-Port-Of: odoo/enterprise#58043
Currently in Odoo on the Swiss Balance Sheet: 1. Reserven und Jahresgewinn oder Jahresvelust (Main Group) (Reserves and profit or loss for the year) 1.1 Gesetzliche Reserven (Legal Reserves) (2950) 1.1.1 Accounts 2900-2991 What they expect for CH: 1. Reserven und Jahresgewinn oder Jahresvelust (Main Group) (Reserves and profit or loss for the year) 1.1 Gesetzliche Reserven (Legal Reserves) (2950) 1.1.1 Accounts 2900-2991 1.2 Test: Jahresgewinn oder Verlust (Profit or loss for the year (A
Original PR description
Currently in Odoo on the Swiss Balance Sheet: 1. Reserven und Jahresgewinn oder Jahresvelust (Main Group) (Reserves and profit or loss for the year) 1.1 Gesetzliche Reserven (Legal Reserves) (2950) 1.1.1 Accounts 2900-2991 What they expect for CH: 1. Reserven und Jahresgewinn oder Jahresvelust (Main Group) (Reserves and profit or loss for the year) 1.1 Gesetzliche Reserven (Legal Reserves) (2950) 1.1.1 Accounts 2900-2991 1.2 Test: Jahresgewinn oder Verlust (Profit or loss for the year (Annual profit and loss) 1.2.1 Accounts 2992-2999 opw-3668192 Forward-Port-Of: odoo/enterprise#58178