Thursday, April 10, 2025
3 changes · 18.0
Enhancements to existing features
Selection menus can now use customized filtering rules instead of relying only on the visible option label. This helps users find and display relevant choices even when extra search information is not shown on screen.
Original PR description
Purpose: allow customizing how options are filtered. In documents, we chose to limit the amount of information present in the `label` of `choice`s, but we should still be able to display all our fetched options, even those that do not match what is in the `label`, and is fixed in the related PR. Task-4656596
When a company’s GSTIN or API credentials are changed, Odoo now clears the related India e-invoicing and e-waybill connection tokens so new ones can be generated. Users also receive a warning that API connections must be re-established after changing the GSTIN, reducing the risk of failed compliance submissions with outdated credentials.
Original PR description
This **PR** refines the API token management system for l10n_in by introducing a dependency on the GSTIN number and on API's credentials. Consequently, whenever the GSTIN number or API's credentials are updated, all associated tokens and their validity are reset. New tokens must then be generated to ensure continued functionality. As part of this **PR** following will be affected: 1) edi_token used for E-Invoicing. 2) auth_validity of E-Waybill authentication. Additionally, a warning is added on GSTIN change, notifying users that re-establishing the connection for the APIs is required after updating the GSTIN. **task**-4430663 **IAP PR**: https://github.com/odoo/iap-apps/pull/971 **Enterprise PR**: https://github.com/odoo/enterprise/pull/76373
The customer statement button will now appear only when there is actual statement content for the selected customer, reducing confusing empty reports. Draft-entry warnings will also appear only when the selected customer has draft accounting entries, helping users focus on relevant alerts.
Original PR description
Description of the issue this commits addresses: The Customer Statement button is shown too often and leads to empty customer statements in some scenarios. The banner warning the user that some entries are draft is also shown too often and should only appear if the selected partner(s) have draft entries. --- Desired behavior after this commit is merged: The button only shows when the customer statement it will lead to has values to show. This means both making sure the partner has moves to show on the customer statement but also that the customer statement actually shows them. Same for the draft entries warning banner. It will only be shown when the selected parter(s) has(have) draft entries. --- task-4680249