[19.0][ADD] product_supplierinfo_search#2341
Open
alan196 wants to merge 1 commit into
Open
Conversation
…ame globally Extend product.product name_search and _search_display_name to match the supplier's product_code/product_name (product.supplierinfo) in any context. Standard Odoo already matches the supplier code, but only when a supplier is in the context (e.g. a purchase order line). This module removes that restriction so the search works everywhere: the general Products view, sale order lines, inventory operations, etc. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Module
product_supplierinfo_searchFind a product by the supplier's code or name (
product_code/product_namedefined onproduct.supplierinfo) from any product searchbox.
Standard Odoo already matches the supplier code, but only when a supplier is
present in the context (for example, a purchase order line for that vendor).
This module removes that restriction so the same search works everywhere: the
general Products view, sale order lines, inventory operations, etc.
How
product.product.name_search(many2one widgets, general search).product.product._search_display_name(genericdisplay_namedomains).
work).
Tests
Added tests covering search by supplier code, by supplier name, and a negative
case. All green.
🤖 Generated with Claude Code