Product Main Vendor
product_main_seller · OCA/purchase-workflow
Health
73/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.14 MB
Module directory on disk
Code analysis
1 migration note
1 model
3 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `WITH numbered_supplierinfos as ( SELECT *, ROW_number() over ( partition BY product_tmpl_id ORDER BY sequence, min_qty desc, price ) as row_number FROM product_supplierinfo ), first_supplierinfos as ( SELECT * from numbered_supplierinfos WHERE row_number = 1 ) UPDATE product_template pt SET main_seller_id = first_supplierinfos.partner_id FROM first_supplierinfos WHERE pt.id = first_supplierinfos.product_tmpl_id;` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module extends the Odoo Product module to compute and display the main Vendor of each products. The main vendor is the first vendor in the vendors list.

Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_product_product_tree |
product.product | tree | Inherits product.product_product_tree_view | |
view_product_template_search |
product.template | search | Inherits product.product_template_search_view | |
view_product_template_tree |
product.template | tree | Inherits product.product_template_tree_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (1)
-
main_seller_idMany2one → res.partnercomodel_name='res.partner'compute='_compute_main_seller_id'help='Put your supplier info in first position to set as main vendor'store=Truestring='Main Vendor'
No public methods.
Loading…
Loading…
Loading…