Thursday, October 31, 2024
10 changes · 17.0
Resolved issues and error corrections
The Malaysia e-invoicing settings no longer show an import journal option for supplier bills because the related government API support is not available for that purpose. This prevents users from configuring a feature that cannot currently work and includes small reliability fixes in the same area.
Original PR description
Importing bills was a planned feature that got scrapped due to limitation of the government api. The endpoints that should allow that have a warning asking to not use them for that purpose at the moment. By mistake, the field stayed when the feature was removed. We will remove it from the view for now, and evaluate later on if we should simply remove it, or if the feature may be added later on. This also iron out some small issues that went through with the original pr. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Fleet app attachment screen now shows the correct upload action on mobile and removes the confusing New button that did not work. This makes it easier for users to add driver history attachments without encountering inaccessible or non-functional controls.
Original PR description
Steps to reproduce: - Fleet app > Any vehicle > Drivers History > Attachments - In mobile view > Primary button 'Upload' is not accessible - Primary button 'New' does not do anything This happens because the controller cannot find a form view for ir.attachment in fleet, which is the default view type for record creation (barring quickcreate stuff). Also d-none class hides the display of the 'Upload' button but the dropdown menu arrow is still there which is rather confusing. Seeing how both buttons serve the same purpose, there is no need to keep 'New' which has no corresponding view. opw-4229756 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Creating a new lot number from a receipt now works directly from the quick-create option instead of opening an extra edit window. This keeps warehouse users in the intended flow and reduces unnecessary steps when receiving tracked products.
Original PR description
Steps: - enable lots & serials - enable 'Use Existing ones' in operation type 'Receipts' - create a product A tracked by lot - create a receipt operation, add product A, add quantity, mark as todo - open burger menu, add a new lot number, select 'Create' (not 'Create and edit...') Issue: `default_product_id` missing in the context because of `getFieldContext` in utils.js filtering it out. Due to that, Odoo will open a new popup as if we selected 'Create and edit...'. Fix: Remove the lot line in pick_from.js, it is not needed and there's another lot_id in the xml to use. opw-4064895 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Time off requests based on extra hours no longer create a negative overtime entry while they are still in draft. This prevents employees' extra hour balances from being reduced before a request is confirmed or approved.
Original PR description
Before this commit, when a time off request based on extra hours was set to draft, a new overtime record with negative duration was created. This commit makes sure that the record is only created when the time off request is in the state `confirm` or `validate`. task-4096548 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update fixes an issue where the timer button on timesheet rows was hidden when users scrolled horizontally within the 'My Timesheets' grid view. Now, the timer button remains visible regardless of horizontal scrolling, ensuring consistent functionality for users managing their timesheets.
Original PR description
Before this commit, when the user horizontally scrolls in the grid view of `My Timesheets` menu, the grid timer button on each row is hidden, only the row title is kept. This commit keeps the grid timer button is kept when the user horizontally scroll in the grid view of `My Timesheets` menu as it is the case for the row title. task-3378510
This update corrects a technical issue related to how sales order item data is processed within the Odoo Enterprise system. By using a lambda function, the system now correctly handles inheritance and returns the expected data format (a list), ensuring accurate sales order item calculations. This improves the reliability of sales reporting.
Original PR description
Since domain method for the Sales Order Item field is not harcoded anymore, the inheritance in this module is now considered, so it needs to be adapted to work correctly with the expected value, i.e. returning a list instead of a string. [FIX] helpdesk_sale_timesheet: unharcode domain method of SO line field Since domain method of the Sales Order Item field is set using the actual class method instead of a lambda, it is not possible to inherit that method when inheriting the model. This issue is fixed by using a lambda function to call the domain method. Forward-Port-Of: odoo/enterprise#72931
This update fixes a bug in the recruitment test that prevented accurate skill detection from OCR results. The changes ensure the test runs correctly after all modules are installed and improve the accuracy of skill matching by refining the search pattern. This enhances the reliability of candidate skill identification.
Original PR description
- Added 'post_install' and '-at_install' tags to ensure the test is executed after all modules are installed, necessary for `test_skill_search_on_ocr_results` to run fully. - Fixed the test to detect when no skills were being added to the applicant, even though some should have been. - Updated the skills search regex: replaced `\s` tags with `\b` tags to correctly detect the first and last words in `ocr_tokens`.
This update resolves a bug where certain fields in web studio reports weren't translating correctly when editing invoices. The issue stemmed from how the system handled indentation in the report XML, leading to a mismatch between the edited content and the translation keys. This ensures all reports, regardless of language, display accurate translations.
Original PR description
Steps to reproduce ================== - Install account_accountant,web_studio - Go to an invoice - Set the partner's language to French - Print the Invoice without Paiement PDF - Open studio - Edit that report - Add a new text below the invoice header - Save the report and exit studio - Print the same report => Some fields aren't translated Cause of the issue ================== When editing the report, ```xml <strong>Due Date:</strong><br/> ``` is converted to ```xml <strong>Due Date:</strong> <br/> ``` This no longer matches the translation key. opw-3730267
This update resolves a bug where the mass depreciation action incorrectly recalculated posted assets. The fix restricts the action to only draft assets, aligning with existing functionality and preventing unnecessary calculations. This ensures accurate depreciation reporting.
Original PR description
As of today, the action_account_asset_compute_depreciations server action allows to recompute the board on posted assets by calling compute_depreciation_board.
There is two issues with that:
- compute_depreciation_board shouldn't be called on assets that could already have moves without providing a date
- This action should reflect what can be done on the form view (only applies to draft)
The easy fix is to update the action to only affect draft entries.
Task id # 4297606This update resolves an issue where timesheet grids weren't correctly displaying times due to time zone discrepancies. This fix ensures accurate time representation for timesheet entries, improving data reliability. It's a follow-up to a previous bug fix.
Original PR description
small fix related to following bugfix: https://github.com/odoo/enterprise/pull/72526