Friday, March 29, 2024
12 changes · 17.0
New functionality added to Odoo
This update adds automated testing capabilities for exporting source language terms from modules. This enables scripts to automatically retrieve the latest translation terms, improving the efficiency of the translation management process and ensuring consistency across the system.
Original PR description
Add a test for exporting the source terms of modules. This will allow automated scripts to fetch latest terms Backport save_test_file with a parameter on date_format to have predictable filenames Forward-Port-Of: odoo/odoo#159291 Forward-Port-Of: odoo/odoo#154624
Resolved issues and error corrections
This fixes a crash that occurred when users selected a custom gradient color while editing marketing emails. Users can now choose gradient colors without being interrupted by an error, making email design more reliable.
Original PR description
Issue: ====== traceback when clicking on gradient colorpicker in mass_mailing Steps to reproduce the issue: ============================= - Got to email marketing - Add some text - Select the text and go to graadient and activate custom - click any color in the colorpalette -> traceback Origin of the issue: ==================== There are some colorpickers being created but never gets assigned a valid `el` so the promise in `onMounted` is never resolved, when we click on a color , `onWillUpdateProps` will be triggered which uses `el` inside. task-3834112
Documentation and clarification updates
This update adds new members to the Adhoc Contributor License Agreement (CLA) document. The change ensures that all contributors who have signed the CLA are properly recorded in the corporate CLA registry, maintaining accurate records of legal agreements with contributing organizations.
Original PR description
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#156175
Fixed a confusing error message that appeared when users added companies to a worksheet template that previously had no companies assigned. The error message now clearly explains the issue instead of displaying blank company names, making it easier for users to understand what went wrong and how to fix it.
Original PR description
This commit's purpose is to improve the error message when a user is adding new company to a template that had none set before. Steps to reproduce: - open fsm app - open configuration menu, worksheet template - select the 'Device installation and maintenance' worksheet (it is the one with tasks linked to it) - add a new company 'my company (chicago)' and save. A validation error message pops up. That is fine and the expected behavior, since the new companies of the template are not consistent with the task already linked to it. Source: the generic message is using the old values of the companies of the worksheet, but since there were none, no names are displayed and the error message is confusing. Solution: check if the worksheet used to have companies set before the user changes. If not, display a relevant error message task - 3749225
This fix corrects test validation values for eco voucher calculations in the Belgian payroll module. The expected test values were not updated in a previous change that excluded parental time off from eco voucher eligibility. This ensures payroll tests run correctly without demo data.
Original PR description
Expect value for test without demo data wasn't changed in this PR :odoo/enterprise#50794 Fixed with this commit. task: 3837296
This update fixes appointment scheduling tests that were failing when demo data wasn't available. The system now properly handles timezone settings and removes dependencies on specific demo user accounts, making tests more reliable and independent of sample data.
Original PR description
* With no demo data, the current user does not have a timezone set. As the default value of appointment_tz is based on that, it leads to an error. We now set manually the appointment_tz for the appointment type created. * Remove the use of demo data (Mitchell Admin and Joe Willis) for test tour.
This fix ensures that product tracking is properly enabled in barcode scanning tests, preventing test failures when demo data is not available. The change ensures that test lines are correctly grouped during barcode operations, maintaining test reliability across different environments.
Original PR description
The product tracking is enabled by default in the demo data. Running the test without those data will break, as the 2 lines in the tour won't be grouped. runbot 54158 Forward-Port-Of: odoo/enterprise#59647
A test in the Planning module was failing due to daylight saving time changes. This fix ensures the test consistently uses UTC timezone throughout, eliminating failures caused by seasonal time changes. This makes the test more reliable and easier to maintain.
Original PR description
Before this commit, the test fails since 23 March 2024 because next week the hours changed (summer time). The problem is there if the timezone is not UTC. This commit ensures the whole test uses the same timezone and only UTC one to avoid having to manage summer/winter time in the test. runbot-60932 Forward-Port-Of: odoo/enterprise#59366
This update adds a missing Spanish translation for a term used in Chilean invoices. The translation was previously unavailable, which could have caused display issues for Spanish-speaking users in the Latin American region. This fix ensures all invoice text displays correctly in the appropriate language.
Original PR description
Issue ----- A term doesn't have a translation available. Note: no Transifex project associated. **opw-3816657** Forward-Port-Of: odoo/odoo#159147
This fix improves the user experience when someone accidentally tries to upload a folder instead of a file using the /file command in Knowledge. Previously, the upload would fail silently with no error message. Now users will see a clear error notification explaining that only files can be uploaded, not folders.
Original PR description
**Steps to reproduce:** **OS:** Ubuntu 20.04.4 LTS with nautilus **Browser:** Google Chrome Version 123.0.6312.58 - type /file command in knowledge - select a folder and click on open - traceback occurs **Current behavior before PR:** When a user attempts to upload a folder using /file command, the processing begins, but the folder is not uploaded because the `getDataURLFromFile` return promise is not fulfilled. Additionally, there is no indication of any warnings or errors during the folder upload process. **Desired behavior after PR is merged:** If a user attempts to upload a folder instead of a file using the /file command, it results in an error message in the toaster notification. task-3690847 Forward-Port-Of: odoo/odoo#151755
This update corrects inaccurate information in the Stripe payment module's documentation. The README contained an incorrect description of the payment flow process, which has been fixed to accurately reflect how Stripe payments are processed in Odoo. This ensures users and administrators have reliable documentation when setting up and managing Stripe payments.
Original PR description
Forward-Port-Of: odoo/odoo#159621
This update fixes a test failure in the inventory system's test suite that was causing errors when running the unpacking and quantity history test. The fix ensures the test runs reliably without encountering index errors, improving the stability of the inventory testing process.
Original PR description
Test 'test_unpack_and_quants_history' may fail with error
```
ERROR: StockQuant.test_unpack_and_quants_history
Traceback (most recent call last):
File "/data/build/odoo/addons/stock/tests/test_quant.py", line 926, in test_unpack_and_quants_history
dst_location = stock_location.child_ids[0]
File "/data/build/odoo/odoo/models.py", line 6189, in __getitem__
return self.browse((self._ids[key],))
IndexError: tuple index out of range
```
Forward-Port-Of: odoo/odoo#159611