Skip to content

[19.0][ADD] product_supplierinfo_search#2341

Open
alan196 wants to merge 1 commit into
OCA:19.0from
Jarsa-dev:19.0-add-product_supplierinfo_search
Open

[19.0][ADD] product_supplierinfo_search#2341
alan196 wants to merge 1 commit into
OCA:19.0from
Jarsa-dev:19.0-add-product_supplierinfo_search

Conversation

@alan196

@alan196 alan196 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Module product_supplierinfo_search

Find a product by the supplier's code or name (product_code /
product_name defined on product.supplierinfo) from any product search
box.

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

  • Overrides product.product.name_search (many2one widgets, general search).
  • Overrides product.product._search_display_name (generic display_name
    domains).
  • Delegates to core when a supplier is already in the context (no duplicate
    work).

Tests

Added tests covering search by supplier code, by supplier name, and a negative
case. All green.

🤖 Generated with Claude Code

…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>
@OCA-git-bot OCA-git-bot added series:19.0 mod:product_supplierinfo_search Module product_supplierinfo_search labels Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:product_supplierinfo_search Module product_supplierinfo_search series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants