Skip to content

Commit 98fe3d6

Browse files
feat(sale): Add product search by supplier info
This commit introduces the `sale_product_supplierinfo_search` module, which allows users to search for products on sales order lines and in the global product catalog by using the vendor's product code or product name. Key features: - Overrides `_name_search` on `product.product` to extend search capabilities. - Activates the extended search via a context key on the sales order line. - Adds a user-friendly "Search in Vendor Info" filter to the main product search view. - Modifies the search result display to include the vendor's product code for better user context. - Includes comprehensive unit tests to validate the new functionality. - Provides OCA-compliant documentation and demo data.
1 parent b04a69e commit 98fe3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sale_product_supplierinfo_search/views/sale_order_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<field name="inherit_id" ref="sale.view_order_form" />
1212
<field name="arch" type="xml">
1313
<xpath
14-
expr="//field[@name='order_line']/tree/field[@name='product_id']"
14+
expr="//field[@name='order_line']//field[@name='product_id']"
1515
position="attributes"
1616
>
1717
<attribute

0 commit comments

Comments
 (0)