Daily updates from Odoo
Tuesday, June 4, 2024
14 changes · master
Enhancements to existing features
Translated messages now avoid automatic developer-style quoting and instead use consistent curly quotation marks around inserted text. This makes messages clearer for users and easier to adapt correctly across different languages and regions.
Original PR description
While using %r in translation strings to automatically quote strings without having to deal with escaping/choosing the right string delimiters seems like a good idea, it has a few issues:
- This doesn't work for non-string data types.
- Different languages use various quotation marks (e.g., “guillemets” in French, corner brackets in Chinese).
- Even in English, the common typographical recommendations suggest using curly quotes (“”) over straight quotes ("").
- It is not always clear whether it will produce single or double quotes.
For these reasons, this PR removes all instances of %r in translation strings, and replaces them with %s, surrounding them with curly quotes.
Community: https://github.com/odoo/odoo/pull/166859
Task-3942743Resolved issues and error corrections
The demo employee timesheet data now shows the correct last validated timesheet date. This keeps sample Timesheet records consistent and avoids misleading dates when users explore or test the module.
Original PR description
In the Timesheet Module, we are fixing the data related to the demo employee set, specifically in the last_validated_timesheet_date field. it will result in the last validated timesheet date being returned as 10 days earlier. task-350454
Working schedule hour values in Payroll are now shown in a cleaner time format instead of raw decimal numbers. This makes required full-time hours and weekly hours easier for HR users to read and reduces confusion when reviewing schedules.
Original PR description
full_time_required_hours and hours_per week are no longer displayed as floats. task-3888824
An obsolete setting related to spreadsheet date filters was removed from the code. This reduces maintenance overhead and helps prevent confusion without changing how users work with spreadsheets.
Original PR description
There was still reference on global filter's automaticDefaultValue in the code, but automaticDefaultValue isn't used. This commit removes the dead code. Task: [3956477](https://www.odoo.com/web#id=3956477&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form)
Miscellaneous changes
Before this commit, when hitting enter while typing in multi-line text, The cursor would move to the next sign item. But it should simply add a new line and remain focused on the multi-line item. This commit aims to fix this issue by preventing jumping to the next item when being at multi-line. Task: 3910934 Forward-Port-Of: odoo/enterprise#63622 Forward-Port-Of: odoo/enterprise#62378
Original PR description
Before this commit, when hitting enter while typing in multi-line text, The cursor would move to the next sign item. But it should simply add a new line and remain focused on the multi-line item. This commit aims to fix this issue by preventing jumping to the next item when being at multi-line. Task: 3910934 Forward-Port-Of: odoo/enterprise#63622 Forward-Port-Of: odoo/enterprise#62378
This will fix the file exported for the eco voucher with Monizze. Task: 3895296 Forward-Port-Of: odoo/enterprise#62189
Original PR description
This will fix the file exported for the eco voucher with Monizze. Task: 3895296 Forward-Port-Of: odoo/enterprise#62189
with the invoice plus PR, some tours and tests are failing on runbot - test_tour_bank_rec_ui: Build Error 66365 - this tour contained a step that depends on account_reports. patch is added to account reports - test_accountant_tour: Build Error 66371 - The bill guide containing button `action_create_vendor_bill` (create vendor bill from sample) is only available on empty Purchase Journals. A new journal is created in the admin user's company Forward-Port-Of: odoo/enterprise#63628
Original PR description
with the invoice plus PR, some tours and tests are failing on runbot - test_tour_bank_rec_ui: Build Error 66365 - this tour contained a step that depends on account_reports. patch is added to account reports - test_accountant_tour: Build Error 66371 - The bill guide containing button `action_create_vendor_bill` (create vendor bill from sample) is only available on empty Purchase Journals. A new journal is created in the admin user's company Forward-Port-Of: odoo/enterprise#63628
This PR fixes two issues with the portal web client of Knowledge: - When a portal user opens an article and clicks on an article of the sidebar, the article id specified in the route url and the session are not updated. The router only updates the url params of the url. When the user loads the page, the client script will load the article specified in the session. As the session is not updated when switching article, the script can load an incorrect article when reloading the page. This PR ai
Original PR description
This PR fixes two issues with the portal web client of Knowledge: - When a portal user opens an article and clicks on an article of the sidebar, the article id specified in the route url and the…
This PR fixes two issues with the portal web client of Knowledge: - When a portal user opens an article and clicks on an article of the sidebar, the article id specified in the route url and the session are not updated. The router only updates the url params of the url. When the user loads the page, the client script will load the article specified in the session. As the session is not updated when switching article, the script can load an incorrect article when reloading the page. This PR aims to fix that issue by ensuring that the client script will load the article with the id specified in the url params of the url. - When a portal user opens an article, clicks on an article of the sidebar and presses the back button, the system updates the url params and set the right id but it doesn't load the corresponding article in the view. This PR aims to fix that issue by ensuring that the web client load the article whenever the url changes. task-3743416 Forward-Port-Of: odoo/enterprise#63554 Forward-Port-Of: odoo/enterprise#60845
Before this change we were always setting document type for the debit note by default, but this should only apply if from Peru LATAM 1198 Forward-Port-Of: odoo/enterprise#63655 Forward-Port-Of: odoo/enterprise#63099
Original PR description
Before this change we were always setting document type for the debit note by default, but this should only apply if from Peru LATAM 1198 Forward-Port-Of: odoo/enterprise#63655 Forward-Port-Of: odoo/enterprise#63099
Community: https://github.com/odoo/odoo/pull/167767 Forward-Port-Of: odoo/enterprise#63726
Original PR description
Community: https://github.com/odoo/odoo/pull/167767 Forward-Port-Of: odoo/enterprise#63726
### [IMP] sale_project_forecast: hide planning enable for other tracking This commit hide planning enabled field and related content for not project related type from product form view. ### [IMP] website_appointment_sale: improve filter in booking type computation This commit add more condition in booking type field computation so we only do query for product we that is closest to being booking_type. task-3959899 Forward-Port-Of: odoo/enterprise#63447
Original PR description
### [IMP] sale_project_forecast: hide planning enable for other tracking This commit hide planning enabled field and related content for not project related type from product form view. ### [IMP] website_appointment_sale: improve filter in booking type computation This commit add more condition in booking type field computation so we only do query for product we that is closest to being booking_type. task-3959899 Forward-Port-Of: odoo/enterprise#63447
task-3551627 community: https://github.com/odoo/odoo/pull/166215 Forward-Port-Of: odoo/enterprise#63180
Original PR description
task-3551627 community: https://github.com/odoo/odoo/pull/166215 Forward-Port-Of: odoo/enterprise#63180
Create a branch company In the parent company: - Create a [tax] of type "Group of Taxes" and add a child tax - add [tax] to a [product] record In the branch company: - Create an invoice with [product] - Open journal Reports KeyError will raise It occurs because we fetch the tax data by SQL selecting data belonging to the current company only, without considering parent companies opw-3874824 Forward-Port-Of: odoo/enterprise#63004
Original PR description
Create a branch company In the parent company: - Create a [tax] of type "Group of Taxes" and add a child tax - add [tax] to a [product] record In the branch company: - Create an invoice with [product] - Open journal Reports KeyError will raise It occurs because we fetch the tax data by SQL selecting data belonging to the current company only, without considering parent companies opw-3874824 Forward-Port-Of: odoo/enterprise#63004
See also: https://github.com/odoo/odoo/pull/167738 Forward-Port-Of: odoo/enterprise#63708
Original PR description
See also: https://github.com/odoo/odoo/pull/167738 Forward-Port-Of: odoo/enterprise#63708