Tuesday, September 3, 2024
23 changes · master
New functionality added to Odoo
A new payroll wizard helps calculate Tax Deducted at Source (TDS) from the provided employee and contract details. This makes monthly payroll processing easier and more transparent by showing the tax calculation before applying it to contracts.
Original PR description
In this PR, a new wizard is created to calculate the TDS based on the given parameters and apply it to the monthly contracts Task - 3910821
Enhancements to existing features
The appointment booking pages were updated to use standard browser technology instead of an older helper library. This keeps the experience the same for users while making the frontend easier to maintain and better aligned with modern web practices.
Original PR description
Specification: This PR focuses on transitioning all frontend code from jQuery to Vanilla JavaScript. The changes specifically target files in the web.assets_frontend. task-3770362
Resolved issues and error corrections
This fix makes the Philippine SAWT and QAP report export order consistent every time. It prevents random automated test failures, helping keep releases stable without changing business functionality.
Original PR description
Folllow up to #67860: the use of a `set` in `export_sawt_qap` makes export ordering non-deterministic, which will randomly fail the checks in `TestSawtQapGeneration` (`test_sawt` and `test_qap`). Use a list to ensure the export is deterministically ordered. Example build failures: - https://runbot.odoo.com/runbot/build/67649933 - https://runbot.odoo.com/runbot/build/67650267
Code cleanup and technical improvements
This internal cleanup standardizes how the frontend identifies the current user by renaming a session field from user_id to uid. It helps keep enterprise modules aligned with the core platform change without changing day-to-day user workflows.
Original PR description
community pr: https://github.com/odoo/odoo/pull/177985
Miscellaneous changes
Performs test of a related commit in communiy: [FIX] mail: include whatsapp in webpush notifications There are couple of components in the notification architecture. For the sake of illustration let's simplify it with the following: Sender -> Queuer -> Receiver Queuer is an FMC backend, so we should only be concerned about the other two. Receiver which is just a frontend service worker that will generate notifications as soon as he receives an event. The issue (before this commit) was in the
Original PR description
Performs test of a related commit in communiy: [FIX] mail: include whatsapp in webpush notifications There are couple of components in the notification architecture. For the sake of illustration let's simplify it with the following: Sender -> Queuer -> Receiver Queuer is an FMC backend, so we should only be concerned about the other two. Receiver which is just a frontend service worker that will generate notifications as soon as he receives an event. The issue (before this commit) was in the Sender part, which was skipping whatsapp type message generation. [Reproduce] - Configure Whatsapp account, include user A in "Notify users" - Allow notifications in your browser (chat icon/ OdooBot suggestion) - Send a whatsapp message to the configured whatsapp number - BUG: Push notification not showing up opw-3720699 Forward-Port-Of: odoo/enterprise#68807 Forward-Port-Of: odoo/enterprise#68453
Automatic warehouse creation now applies only to the first company, so related multi-company test flows are updated to create the needed warehouse explicitly. This keeps sale, warehouse, and manufacturing planning scenarios reliable without changing day-to-day business workflows.
Original PR description
In https://github.com/odoo/odoo/pull/172457, automatic warehouse creation is restricted to be only for the first company, hence, some unit tests that create a multi-company environment needs to be modified. A warehouse creation step is added to these tests so that the flow being tested does not break. Task-4034713
Web Studio now notifies selected users when a record action is approved or refused, rather than when the approval request is first created. This makes notifications more timely and relevant, so stakeholders are alerted when a decision has actually been made.
Original PR description
We refactor the way the field users_to_notify is used. Now, the users to notify (if any) are notified when an action/method on a record is approved/refused. Previously they were notified when a request was created. They are not longer notified at that moment. Task ID: 4122972
The timesheet analysis report now has clearer list and form views with more relevant fields for reviewing time entries. This makes it easier for teams using timesheets and helpdesk timesheets to inspect and analyze reported work without seeing an overly technical default layout.
Original PR description
## [IMP] {helpdesk_}timesheet{_grid}: make list view for timesheets analysis report
This commit overrides the list view of timesheets analysis report to add fields that could be interested to analysis.
## [IMP] {helpdesk_}timesheet{_grid}: add form view for timesheet analys…
…is report
Before this commit, the form view was the default one that is the one
displaying all the fields defined inside the report.
This commit defined a form view to have the same render than one defined
for timesheets.
task-4053021The rental date picker now displays better when shoppers use the collapsed sidebar on the website shop. The off-canvas menu also keeps product categories first, making browsing and date selection clearer for customers.
Original PR description
Since the introduction of the new "Collapsed sidebar" feature in https://github.com/odoo/odoo/pull/177056, this commit adapts the date picker style when the sidebar is collapsed. task-3987018 Requires: - https://github.com/odoo/odoo/pull/177056 --- <img width="1776" alt="Capture d’écran 2024-08-20 à 09 38 23" src="https://github.com/user-attachments/assets/89fa009b-8c59-48ea-bc65-6c72f03a50d7">
Users returning to a spreadsheet from a drill-down records view now keep their filters, selected cells, scroll position, and loaded data. This avoids frustrating resets and delays, especially when working with pivot tables and shared spreadsheets.
Manufacturing users can now choose which existing operation should come before a newly added shop floor operation. This makes it easier to keep production steps in the right order when plans change during execution.
Original PR description
This commit permits to select a previous operation when the user adds a new operation from the shop floor. task-3848797
Published Knowledge articles now provide social platforms with article-specific preview information instead of generic website defaults. This improves how shared links appear on services like Facebook and WhatsApp, making them clearer and more appealing to open.
Original PR description
When a user publishes an article and shares the access link with a friend on Facebook, WhatsApp, or other social media platforms, most platforms fetch the website's Open Graph metadata to display a preview of the link. For the website's knowledge module, we have not defined any Open Graph metadata. The system currently uses default values loaded from the `ir.ui.view` model and the preview does not give any information about the article. To enhance the link preview on the external platforms and enhance the SEO of the articles, we will manually set the Open Graph metadata using the information about the article. This should make people more inclined to click on the link. task-4001922
The Settings menu now uses the same “Social Marketing” name as the app itself. This removes confusion caused by the previous “Social Media” label and makes the user experience more consistent.
Original PR description
### Before this PR: The name of the app is 'Social Marketing' but in settings it shows 'Social Media'. ### After this PR: Fix naming in Settings Menu. Social Media → Social Marketing Task-4143044
Rental and subscription pricing tables now appear inside the product details accordion when that layout is enabled. This keeps product pages cleaner and more consistent while preserving the pricing information shoppers need.
Original PR description
Follow the changes made in [community](https://github.com/odoo/odoo/pull/173823), this PR shows the rental and subscription pricing table inside the product details accordion if the accordion is enabled by the user. task-3987039
Kanban card layouts in Field Service, IoT, and Knowledge have been simplified using newer standard components. This makes these screens easier to maintain and helps keep the user interface consistent with current Odoo practices.
Original PR description
In this commit we have simplified the kanban arch for the industry_fsm, industry_fsm_report,iot and knowledge modules.the goal is to simplify them, make them easier to read and use bootstrap utility classnames. - Previously, we used kanban-box, but now we are using kanban-card instead. - Deprecated oe_kanban_global_click and oe_kanban_global_click_edit. - More use of `<field/>` tags - Removed the oe_kanban_colorpicker class and replaced it with the kanban_color_picker widget. - Changed type='edit' to type='open' to open records. since version 16, records always open in edit mode by default. - kanban_image from rendering context, is deprecated so we use `<field name=... widget=image/>` instead - kanban_color, kanban_getcolor and kanban_getcolorname are deprecated use new attribute highlight_color=color_field_name on root node Task-3992107
Companies can now distinguish the country used for tax mapping from the delivery country used for automatic fiscal position detection. This helps businesses exporting from warehouses outside their fiscal country apply the right taxes without rebuilding their fiscal position setup.
Original PR description
Description of the issue this commit addresses: Some companies export goods from warehouses outside of their fiscal country. It is currently not possible to use the "Detect Automatically" feature of the fiscal positions for them as the country they need to set to get the right tax mapping is not the country that needs to be detected for the auto apply. --- Desired behavior after this commit is merged: This commit allows users upon the installation of the new module to split the country of the tax mapping and the country of the auto apply. They are named "Fiscal Country" and "Delivery Country" and it grants companies the ability to have a working flow without starting from scratch if they need such a behavior. --- Community PR: https://github.com/odoo/odoo/pull/177746 task-4066525
Batch payslip generation now only includes employees with an active contract matching the selected salary structure type. This helps payroll teams avoid creating incorrect payslips and reduces manual cleanup.
Original PR description
This PR enhances the batch payslip generation process. Previously, payslips were generated for all employees, regardless of their salary structure type. Now, payslips will only be generated for employees with a running contract based on the same salary structure type. task-4002203
The values computed in `super()._compute_l10n_br_goods_operation_type_id()` are immediately nullified by the successive `self.l10n_br_goods_operation_type_id = False`. Forward-Port-Of: odoo/enterprise#69177
Original PR description
The values computed in `super()._compute_l10n_br_goods_operation_type_id()` are immediately nullified by the successive `self.l10n_br_goods_operation_type_id = False`. Forward-Port-Of: odoo/enterprise#69177
Behaviour before fix: The exported planning ics file included both the employee's shifts and unwanted shifts by other employees. Behaviour after fix: The exported planning ics file only includes the employee's shifts. Solution: Don't include the domain to add unwnated shifts in the search of the _get_cs_file method of the planning.planning model. Task-3981746 Forward-Port-Of: odoo/enterprise#69050
Original PR description
Behaviour before fix: The exported planning ics file included both the employee's shifts and unwanted shifts by other employees. Behaviour after fix: The exported planning ics file only includes the employee's shifts. Solution: Don't include the domain to add unwnated shifts in the search of the _get_cs_file method of the planning.planning model. Task-3981746 Forward-Port-Of: odoo/enterprise#69050
## Pull Request HOOT (PRHOOT) - part 22 Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4: https://github.com/odoo/odoo/pull/153203 Part 5: https://github.com/odoo/odoo/pull/153425 Part 6: https://github.com/odoo/odoo/pull/153700 Part 7: https://github.com/odoo/odoo/pull/154054 Part 8: https://github.com/odoo/odoo/pull/154579 Part 9: https://github.com/odoo/odoo/pull/155073 Part 10
Original PR description
## Pull Request HOOT (PRHOOT) - part 22 Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4:…
## Pull Request HOOT (PRHOOT) - part 22 Part 1: https://github.com/odoo/odoo/pull/152930 Part 2: https://github.com/odoo/odoo/pull/153018 Part 3: https://github.com/odoo/odoo/pull/153023 Part 4: https://github.com/odoo/odoo/pull/153203 Part 5: https://github.com/odoo/odoo/pull/153425 Part 6: https://github.com/odoo/odoo/pull/153700 Part 7: https://github.com/odoo/odoo/pull/154054 Part 8: https://github.com/odoo/odoo/pull/154579 Part 9: https://github.com/odoo/odoo/pull/155073 Part 10: https://github.com/odoo/odoo/pull/155639 Part 11: https://github.com/odoo/odoo/pull/156255 / https://github.com/odoo/enterprise/pull/58135 Part 12: https://github.com/odoo/odoo/pull/156869 Part 13: https://github.com/odoo/odoo/pull/158384 / https://github.com/odoo/enterprise/pull/59019 Part 14: https://github.com/odoo/odoo/pull/158916 Part 15: https://github.com/odoo/odoo/pull/160292 / https://github.com/odoo/enterprise/pull/59971 Part 15.5: https://github.com/odoo/odoo/pull/166463 Part 16: https://github.com/odoo/odoo/pull/166311 Part 17: https://github.com/odoo/odoo/pull/168328 Part 18: https://github.com/odoo/odoo/pull/171004 / https://github.com/odoo/enterprise/pull/65657 Part 19: https://github.com/odoo/odoo/pull/171242 / https://github.com/odoo/enterprise/pull/65767 Part 20: https://github.com/odoo/odoo/pull/173332 / https://github.com/odoo/enterprise/pull/66895 Part 21: https://github.com/odoo/odoo/pull/174337 Community: https://github.com/odoo/odoo/pull/176777 This pull requests brings various improvements and fixes to Hoot and the Odoo unit test ecosystem. See the different commit messages for more details. Note: these changes are made in stable to avoid having to support multiple versions of the HOOT API. As such, these changes are intended to be strictly limited to unit tests as to not put the rest of the code base at risk. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/enterprise#68827 Forward-Port-Of: odoo/enterprise#68721
While the format for the guid is the right in the xml, for the CSV, we should add double quotes, as asked by the format. The 2 zip should really be separated, with one for the csv and the other for the attachments Renamed the 2 buttons to indicate more clearly what they are about. The csv only expects a single attachment per move. We should then only export the message_main_attachment_id task-4131986 Forward-Port-Of: odoo/enterprise#68941 Forward-Port-Of: odoo/enterprise#68794
Original PR description
While the format for the guid is the right in the xml, for the CSV, we should add double quotes, as asked by the format. The 2 zip should really be separated, with one for the csv and the other for the attachments Renamed the 2 buttons to indicate more clearly what they are about. The csv only expects a single attachment per move. We should then only export the message_main_attachment_id task-4131986 Forward-Port-Of: odoo/enterprise#68941 Forward-Port-Of: odoo/enterprise#68794
In this PR, fixes payroll tour as hr responsible field moves from notebook to main view. Note: target saas-17.4 related task-3621276 Forward-Port-Of: odoo/enterprise#69327
Original PR description
In this PR, fixes payroll tour as hr responsible field moves from notebook to main view. Note: target saas-17.4 related task-3621276 Forward-Port-Of: odoo/enterprise#69327
task-4063399 Forward-Port-Of: odoo/enterprise#67016
Original PR description
task-4063399 Forward-Port-Of: odoo/enterprise#67016