Daily updates from Odoo
Wednesday, August 14, 2024
23 changes · master
New functionality added to Odoo
Adds Indonesia-specific payroll setup, including salary rules, leave and work entry data, employee and contract fields, demo data, and tests for payroll calculations. This enables businesses operating in Indonesia to manage local payroll requirements directly in Odoo while also preventing a Belgian payroll configuration issue from affecting other localizations.
Original PR description
Payroll Localization for Indonesia including unit test for salary rules 3112793
Enhancements to existing features
The employee disability status field is now managed centrally in Payroll instead of being duplicated across Belgium, Kenya, and Bangladesh payroll localizations. Bangladesh employee payroll fields also received missing access restrictions so only HR users can view or edit sensitive employee information.
Original PR description
Three localisations share the same 'disabled' field on the employee. It should be moved to hr_payroll. Also add groups that were missing on Bangladesh employee's fields. Task: 4031976
Timesheet access rules have been simplified by using a newer searchable participant field. This keeps the same access behavior while making the underlying security setup easier to maintain.
Original PR description
## Description Following the introduction of the searchable field `message_partner_ids` for the timesheets, we can simplify some `ir.rules`. Semantics are equivalent. ## Reference task-3977971
The inter-company accounting rules now use a standard helper to identify analytic accounts in distributions. This keeps the feature aligned with the accounting framework and reduces maintenance risk without changing day-to-day user workflows.
Original PR description
…lytic A method to obtain the analytic accounts used in an analytic distribution was added. Use this method instead Task-3926461
Tax-included taxes have been deactivated, so related localization settings were cleaned up to avoid assigning obsolete tax references. This helps keep Brazilian AvaTax and Peruvian reporting configurations aligned with current tax behavior and reduces the risk of incorrect setup data.
Original PR description
Due to the deactivation of tax_included taxes, we have to remove these lines from the assignation of the field. Community: odoo/odoo#173906 Upgrade: odoo/upgrade#6354 Task [link](https://www.odoo.com/odoo/project.task/4019610) task-4019610
The Sign app no longer offers the unnecessary “Add on all pages” option when a PDF has only one page. This reduces confusion and streamlines placing initials on simple documents.
Original PR description
Before this commit, when uploading a single-page PDF and dropping the "initial" field, the wizard still offered the "Add on all pages" option, which is not useful for a one-page document. After this commit, the "Add on all pages" button will be disabled if the document has only one page. Also in case if there is only page we directly add field into pdf without hassle to choose signer. task-4069435
WhatsApp conversations now show clearer messages when a new template or document is sent to the same customer. This helps users understand whether the current chat continues with the template content or should move to another document.
Original PR description
**PURPOSE:** Currently while the conversation is going if a new template is shared with the same customer than a message is dropped on the channel which needs improvement in language construct. **SPECIFICATION:** Improve construct when document is sent by a) same user using different model: Post a message consisting of the template body in the channel. b) Different user from any model: "Chat shall be moved to DocumentName." task-[3607392](https://www.odoo.com/web#id=3644180&menu_id=4720&cids=2&action=333&active_id=965&model=project.task&view_type=form)
Barcode operations now handle packaged products with tracking more smoothly, especially items tracked by serial number. This helps warehouse users complete immediate transfers more reliably by creating or selecting the right line for each packaged item during scanning.
Original PR description
Before this commit ================== Handling tracked packaging in the barcode was tricky, especially for products tracked by serial numbers. Immediate transfer for these items wasn't smooth because separate lines didn't appear when the packaging was on. This made scanning serials difficult, even though lots worked fine. After this commit ================= This commit improves the handling of tracked packaging in the barcode. For products tracked by serial numbers, immediate transfer works more smoothly when packaging is enabled. The system now correctly adds/selects one line for packaged items, making scanning serials easier. TaskId: 3626142
Amazon order imports no longer create new state records when a matching state cannot be found. Instead, the system creates a follow-up activity for the Amazon salesperson so the contact can be corrected manually, helping avoid duplicate or unreliable state data.
Original PR description
Before this commit contact created from amazon order create new state if it does not find matching state in odoo and it was causing issues like having record multiple record for same state and user don't know which one is right with proper code in data. This commit stop creating new state instead create activity on contact for amazon sale person to set proper state on the related contact to not break flows that are related to contact's state. task-3865454
The Helpdesk customer portal is clearer and easier to use, with ticket stages shown without potentially misleading color indicators. Website support forms now collect more customer contact details and respond better to user actions, including smarter submit button behavior.
Original PR description
_* = website_helpdesk - removed the color code to the portal list view for ticket stage display as the fact that it is folded or not no longer determines whether a task is closed or open. - added some additional fields for capturing customer contact details. - optimize the Submit button for dynamic behavior based on user actions. - Improved the website form based on user actions. task-3635784
This update aligns India GSTR report tests with the new way fiscal years spanning two calendar years are shown in document names. It helps ensure generated report names remain accurate and consistent when the fiscal year crosses year boundaries.
Original PR description
See community counterpart, when the fiscal year is staggered on 2 years, the document name will reflect that. task-3653456
The barcode scanning screen now uses the full available width for the camera view. This makes it easier for users to scan items accurately and quickly during warehouse operations.
Original PR description
For an easier scan reading
When users create a new product from a barcode lookup, the notification now closes as soon as they tap the action button. This frees up screen space on mobile so they can start editing the new product immediately instead of waiting for the message to disappear.
Original PR description
When you want to create a new product from barcode lookup you want to edit it directly. However on mobile the notification take a lot of place on the screen and you have to wait for the timeout before edition
Appraisal, survey, and helpdesk timesheet pages now use clearer, more human-readable web addresses. This makes shared links easier to understand and improves the experience for employees and customers navigating these workflows.
Original PR description
*= helpdesk_sale_timesheet, hr_appraisal_survey This commit modifies existing URLs to the new format so that the URL's become more human readable. Task-3820230
Frontdesk and Helpdesk URLs have been updated to a clearer, more human-readable format. This makes shared links easier for users to understand and improves the overall customer and visitor experience without changing core workflows.
Original PR description
This commit modifies existing URLs to the new format so that the URL's become more human readable. Task-3820230
Resolved issues and error corrections
This fix prevents users from changing the refund status of a salary attachment once it has already been used in payslips. This helps protect payroll accuracy by avoiding inconsistent records after payroll processing has begun.
Original PR description
TaskID: 4040011
Scanning a barcode found in the lookup service no longer fails when the product has no image available. The product can still be created or updated from the barcode data, with the missing image simply skipped.
Original PR description
Issue: Traceback is encountered when scanning a barcode that is available in the barcodelookup api but doesn't have image. Example barcode: 9780349410159 - Traceback: `AttributeError: 'dict' obiect has no attribute 'content'` This is because of the inconsistent return value of `barcode_lookup_request`. If it succeeds, it returns a `Response` object but if not, it returns a `dict`. To fix the traceback, we check if the fetching of image failed by checking if the returned value is a `dict`. If so, we just skip the image assignment for the product.
The Partner Ledger report now correctly shows entries when users filter by an individual contact rather than a company. This prevents empty reports and helps users review financial activity for the specific partner they selected.
Original PR description
Steps to reproduce:
- Go to Partner Ledger report
- Choose individual in partners filtering instead of company
- Cannot show report filtered by individual
Current behaviour:
- Show empty report
Expected behaviour:
- Show report related to the individual only
Explanation:
The account.move.line partner_id will set as commercial_partner_id. Therefore in _get_options_partner_domain(self, options), the domain ('partner_id', 'in', partner_ids) only filtered on the commercial partner, not on the individual partner.Code cleanup and technical improvements
This change lets users manually add certain payment methods to journals even when currency or country criteria would previously hide them, while keeping key safeguards such as journal type and payment mode rules. Default payment method generation remains unchanged, so existing automated setup behavior is preserved while giving finance teams more flexibility for bank-specific requirements.
Original PR description
*/Affected modules: account_batch_payment, account_sepa, account_sepa_direct_debit, l10n_au_aba, l10n_ca_payment_cpa005, l10n_uk_bacs, l10n_us_payment_nacha, payment_sepa_direct_debit This commit is…
*/Affected modules: account_batch_payment, account_sepa, account_sepa_direct_debit, l10n_au_aba, l10n_ca_payment_cpa005, l10n_uk_bacs, l10n_us_payment_nacha, payment_sepa_direct_debit This commit is part of the bigger refactor commit in the community module. This commit refactors the restriction set on the tree view of Journal's Inbound/Outbound payment method lines so that it's possible to manually add method that were initially restricted. In other words, if a payment method is available (and some partial rules are met), we will now be able to add them manually in the journal. The alleviated restriction will be from the currency and country domain, but the mode (unique / electronic) restriction and journal type will stay. Purpose: Sometimes, the user might want to manually add a payment method even when it doesn't meet the method's criteria. For example: an european company wants to create ISO20022 files for his bank that only accepts this type of payment files. Because the bank account is an IBAN, ISO20022 is not available because the journal currency is EUR. This commit will not change the current behavior of generation of default inbound/outbound payment method lines. By default, the domains in the payment methods are considered when adding to the default lines. To make it performance friendly, in the compute for available payment method in journal, we will filter the non bank/cash journal and keep them outside the loop, since payment method are useless for them. task-id: 4058440 related community PR: https://github.com/odoo/odoo/pull/175342
Miscellaneous changes
(✱) is added to recurring line with prorated discount. This discount need to be added in the discount computation as they can be triggered from multiple place. task-ids: 3944656, 3859792 @fdamhaut Forward-Port-Of: odoo/enterprise#63883
Original PR description
(✱) is added to recurring line with prorated discount. This discount need to be added in the discount computation as they can be triggered from multiple place. task-ids: 3944656, 3859792 @fdamhaut Forward-Port-Of: odoo/enterprise#63883
Also delete some obsolete .po files (from modules that had their .pot files removed, but not their .po files) Forward-Port-Of: odoo/enterprise#68042
Original PR description
Also delete some obsolete .po files (from modules that had their .pot files removed, but not their .po files) Forward-Port-Of: odoo/enterprise#68042
* = documents_spreadsheet, website_helpdesk_livechat, whatsapp Enterprise counter-part. After a reset, the last id is always 0. https://github.com/odoo/odoo/pull/176340 Forward-Port-Of: odoo/enterprise#68302
Original PR description
* = documents_spreadsheet, website_helpdesk_livechat, whatsapp Enterprise counter-part. After a reset, the last id is always 0. https://github.com/odoo/odoo/pull/176340 Forward-Port-Of: odoo/enterprise#68302
This module is for a shiprocket-cash-on-delivery option for e-commerce users. - Payment provider for shiprocket cash on delivery - Payment method for shiprocket cash on delivery Co-authored-by: Jitendra Prajapati <jipr@odoo.com> task - 3657635 related community PR: https://github.com/odoo/odoo/pull/154119 Forward-Port-Of: odoo/enterprise#66786 Forward-Port-Of: odoo/enterprise#56663
Original PR description
This module is for a shiprocket-cash-on-delivery option for e-commerce users. - Payment provider for shiprocket cash on delivery - Payment method for shiprocket cash on delivery Co-authored-by: Jitendra Prajapati <jipr@odoo.com> task - 3657635 related community PR: https://github.com/odoo/odoo/pull/154119 Forward-Port-Of: odoo/enterprise#66786 Forward-Port-Of: odoo/enterprise#56663