Daily updates from Odoo
Monday, February 19, 2024
16 changes · master
Enhancements to existing features
Job listings in the recruitment kanban now follow the website recruitment ordering instead of being changed by referrals. This keeps published and newly created jobs displayed in the expected order for recruiters and visitors.
Original PR description
Before this commit, the job order on kanban view was override by hr_referral module but with this task we want to keep the behaviour of website_hr_recrutment module. Now the order is decided by published date and job's creation date (behaviour of website_hr_recruitment) task: 3610490
Odoo can now synchronize currency exchange rates using the Bank of Thailand's official API. This helps businesses working with Thai baht use a local trusted source, with rates pulled from the previous day because current-day rates are not provided.
Original PR description
Adds the possibility to synchronize exchange rates using the API provided by the Bank Of Thailand (BOT). Rates are synchronized using yesterday as a date, as they do not provide rates for the current day. Task id # 3724438
Administrators can now grant selected users permission to apply inventory adjustments without making them full administrators. This makes stock operations easier to delegate while keeping broader administrative rights restricted.
Original PR description
Before this commit ================== You need to be an admin to have the right to apply inventory adjustments. After this commit ================= Added a new security group named `group_stock_user_apply`. The admin can give access to any user by applying this group user will have access right to do inventory adjustments. Community PR: https://github.com/odoo/odoo/pull/149149 TaskId: 3651040
Barcode inventory workflows now handle demands below one unit more accurately, making it easier for users to fill requested quantities with the plus button. Source and destination locations are also shown consistently, improving clarity during warehouse operations.
India payslips now show the employee's department. This gives payroll and finance teams clearer context for reporting and timing-related payroll processes.
Original PR description
We add the employee's department to their payslips to help with financial timing, task-3649463
The Sign app no longer uses an outdated customization for language selection because the underlying behavior now already does what is needed. This reduces unnecessary maintenance while keeping the signing experience unchanged for users.
Original PR description
See community counterpart, `get_available()` got renamed. The equivalent of `get_available()` is now only returning the active language, which makes this override not needed anymore. Note that the test modified here was introduced with this commit: https://github.com/odoo/enterprise/commit/88c846e910ad25546d4b35355c4d9c337825b9f5
Resolved issues and error corrections
This update prevents an error from appearing in the Payroll dashboard warning setup. It replaces an invalid development-mode value with the expected text, helping users avoid a traceback during configuration.
Original PR description
We made the following point. - Remove Python code from dev mode. - A traceback occurs when we set `return 0` in Python code. However, we have replaced `return 0` with the correct string in this commit. task-3729569
Referral point records now show a clear name and point value in all cases, including when the value is zero. This prevents records from appearing as unnamed, making referral tracking easier and less confusing for users.
Original PR description
This commit improve the display of hr_referral_points records by preventing the name to be 'unnamed' and by displaying the number of points in every situation even when the number of points is 0. The reason of unnamed seems to be that the record is interpretted as "False" when it's value is 0 task-3667797
Features or functions removed from Odoo
The unused Danish EDI module has been removed because it no longer provided any business function. This simplifies the product by eliminating obsolete components without affecting Danish localization behavior.
Original PR description
Remove the module l10n_dk_edi as it does not do anything anymore.
Code cleanup and technical improvements
The Website Sale Renting settings were adjusted to align with updated label formatting behavior. This keeps configuration screens visually consistent after labels are no longer automatically capitalized.
Original PR description
See community commit for details.
This update reorganizes demo data for several country localizations so accounting and HR apps can share one demo company instead of creating duplicates. This makes testing more consistent when multiple localized apps are installed together, without changing day-to-day business workflows.
Original PR description
Up until now, we did not have any common demo data package for localizations. This is an issue for localizations having both accounting and hr packages, because these do not depend on each others. It means that to have complete demo data individually, they need to define demo company in both cases. This leads to duplication in demo companies for a single country when both packages are installed, which is not ideal for testing as it also means that demo data is split between multiple companies. This commit will rename things a bit to bring a common demo data package for multiple localization. l10n_xx as it is known today becomes l10n_xx_account (as it was all along an invoicing module). l10n_xx is instead a new module containing the demo company data. task id # 3555251
Miscellaneous changes
…roduct and no plan We prevent creating subscription sale orders with recurring products and no recurring plans However it's better to be defensive to avoid crashes. This commit adds an additional condition before accessing order_id.plan_id closes odoo/enterprise#56160 Task: 3725476 Forward-Port-Of: odoo/enterprise#56464 Forward-Port-Of: odoo/enterprise#56426
Original PR description
…roduct and no plan We prevent creating subscription sale orders with recurring products and no recurring plans However it's better to be defensive to avoid crashes. This commit adds an additional condition before accessing order_id.plan_id closes odoo/enterprise#56160 Task: 3725476 Forward-Port-Of: odoo/enterprise#56464 Forward-Port-Of: odoo/enterprise#56426
We revert the following commit because payment_utils.generate_access_token is working with request.env which is not available in cron. The change should be done in master after modifying generate_access_token to accept an env parameter allowing to be called in cron and regular flow. https://github.com/odoo/enterprise/commit/d0618c4f042806b3336de759ebd0a1fe96f193c1#diff-df4c76c88a3be1689c375cb4c80009af33c77ccb60b5f604988565309c1f4773 taskid: 3640650 Forward-Port-Of: odoo/enterprise#56523
Original PR description
We revert the following commit because payment_utils.generate_access_token is working with request.env which is not available in cron. The change should be done in master after modifying generate_access_token to accept an env parameter allowing to be called in cron and regular flow. https://github.com/odoo/enterprise/commit/d0618c4f042806b3336de759ebd0a1fe96f193c1#diff-df4c76c88a3be1689c375cb4c80009af33c77ccb60b5f604988565309c1f4773 taskid: 3640650 Forward-Port-Of: odoo/enterprise#56523 Forward-Port-Of: odoo/enterprise#56474
Steps to reproduce ================== - Go to Sales > Quotation - Open studio - Click on Reports - Open the "Quotation / Order" report - Inside the Sale order lines, type /field - Click on "Product >" - Type "128" => The "Image 128" field is missing, only the "Variant Image 128" is displayed Cause of the issue ================== Only searchable fields were displayed opw-3713666 Forward-Port-Of: odoo/enterprise#56500 Forward-Port-Of: odoo/enterprise#55839
Original PR description
Steps to reproduce ================== - Go to Sales > Quotation - Open studio - Click on Reports - Open the "Quotation / Order" report - Inside the Sale order lines, type /field - Click on "Product >" - Type "128" => The "Image 128" field is missing, only the "Variant Image 128" is displayed Cause of the issue ================== Only searchable fields were displayed opw-3713666 Forward-Port-Of: odoo/enterprise#56500 Forward-Port-Of: odoo/enterprise#55839
… period In case the period is locked, don't try to cancel the document to avoid the UserError saying you are in a locked period. Instead, don't block the user. That way, he can manage this case manually outside of the locked period. task_id: 3750701 Forward-Port-Of: odoo/enterprise#56723
Original PR description
… period In case the period is locked, don't try to cancel the document to avoid the UserError saying you are in a locked period. Instead, don't block the user. That way, he can manage this case manually outside of the locked period. task_id: 3750701 Forward-Port-Of: odoo/enterprise#56723
…and renting products Currently, it is possible to create a product which can be rentable and recurring. This fix intends to replicate the behavior of previous versions where it was impossible to save a product with both boxes enabled. Steps to reproduce: ------------------- * Go to **Rental** App * Select Products * Create a new product * Enable Reccuring and Can be Rented * Save Why the fix: ------------ https://github.com/odoo/enterprise/commit/2579b5896a4c5e949d30a0a51f18437
Original PR description
…and renting products Currently, it is possible to create a product which can be rentable and recurring. This fix intends to replicate the behavior of previous versions where it was impossible to…
…and renting products Currently, it is possible to create a product which can be rentable and recurring. This fix intends to replicate the behavior of previous versions where it was impossible to save a product with both boxes enabled. Steps to reproduce: ------------------- * Go to **Rental** App * Select Products * Create a new product * Enable Reccuring and Can be Rented * Save Why the fix: ------------ https://github.com/odoo/enterprise/commit/2579b5896a4c5e949d30a0a51f18437adc2b5db2 removed the dependence of sale_temporal for sale_subcription. After that, there was no point in keeping the sale_temporal dependence in sale_renting. Thus, the dependence for sale_temporal has also been removed here: https://github.com/odoo/enterprise/commit/6c86a278dbc752009c0985702cb2927c26f5f636. The module sale_temporal was responsible for checking incompatible products types. Currently, both sale_renting and sale_subscription have the module sale in common. This commit is part of a 2-part fix and targets Odoo Enterprise. It re-introduces the constraints on 'rent_ok' and 'reccuring_invoice'. Code re-introduced: * https://github.com/odoo/enterprise/blob/da031dd50501af0b6c02fab804a9af33363d397c/sale_subscription/models/product.py#L12-L19 * https://github.com/odoo/enterprise/blob/da031dd50501af0b6c02fab804a9af33363d397c/sale_renting/models/product_template.py#L19-L26 PR in Community: https://github.com/odoo/odoo/pull/150688 opw-3678715 Forward-Port-Of: odoo/enterprise#56694 Forward-Port-Of: odoo/enterprise#54940