Friday, May 29, 2026
2 changes · 17.0
Resolved issues and error corrections
This update corrects a bug where customer payments directly deposited into bank accounts were incorrectly categorized as 'Miscellaneous Operations' in bank reconciliation reports. The change ensures that payments are accurately reflected, improving the reliability of bank reconciliation processes. This resolves a reporting issue impacting financial accuracy.
Original PR description
Payments registered directly on a bank account appear incorrectly as miscellaneous operations in the bank reconciliation report. Steps to reproduce: - Open a Bank journal - Add the Bank account as Outstanding Receipts account - Create and validate a Customer Paymen. - Open the Bank Reconciliation Report of the Bank journal Issue: The newly created payment is incorrectly listed under the "Misc. operations" section of the report. Analysis: Direct payments hitting the bank account without an associated statement line are retrieved by the current domain and classified as miscellaneous. Journal items associated to a payment should be excluded from the domain. opw-6144542
This update corrects a bug where non-purchasable products were incorrectly displayed when searching using vendor product codes. The fix ensures that the system properly ignores the 'can be purchased' setting during these searches, preventing inaccurate results and improving the accuracy of vendor-based product lookups.
Original PR description
**Issue**: Non-purchasable products can still be found when searching using a vendor product code. **Steps to reproduce**: - Create a product - Add a vendor with a vendor product code (use a code…
**Issue**: Non-purchasable products can still be found when searching using a vendor product code. **Steps to reproduce**: - Create a product - Add a vendor with a vendor product code (use a code that does not match any product name) - Untick the "can be purchased" box - Create a PO with the same vendor - Search for product using the vendor product code -> The product can be found while not purchasable **Cause**: While searching for a product, `_name_search` is called: https://github.com/odoo/odoo/blob/2083a2515c2855dd53991cbcc6e8b43c3e7f0256/addons/product/models/product_product.py#L543 If no product is found (which is very likely since we use vendor product code): https://github.com/odoo/odoo/blob/2083a2515c2855dd53991cbcc6e8b43c3e7f0256/addons/product/models/product_product.py#L580-L581 Then check all the vendor list associated to the vendor product code (`product_code`) and extract the associated product: https://github.com/odoo/odoo/blob/2083a2515c2855dd53991cbcc6e8b43c3e7f0256/addons/product/models/product_product.py#L582-L588 However, this fallback search does not reuse the original `domain`: https://github.com/odoo/odoo/blob/2083a2515c2855dd53991cbcc6e8b43c3e7f0256/addons/product/models/product_product.py#L543 therefore conditions such as `purchase_ok = True` are ignored. **Solution** Backport the fix from this commit: https://github.com/odoo/odoo/commit/c2d47b976d1ac0eba6bd16add3d54f84e5e2d3d3. And in particular: https://github.com/odoo/odoo/blob/299b3b833a2198c6814141c037a9bd6c69f14ee3/addons/product/models/product_product.py#L647-L648 opw-6214085