TIP: You can type at any time to perform a new search.
Product Main Vendor
product_main_seller · OCA/purchase-workflow
Security findings
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. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/purchase-workflow · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Purchase
- Folder size
- 0.14 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/purchase-workflow
- Last tracking update
- 2026-08-07 09:06:27
- Authors
- Odoo Community Association (OCA), GRAP
- Maintainers
- Odoo Community Association (OCA), GRAP
- Committers
- Weblate, OCA-git-bot, oca-ci, stferraro
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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. 
Code Analysis
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…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 398 days ago
- Last activity
- 164 days ago
- Repository
- OCA/purchase-workflow
- Pull request
- [17.0] [MIG] product_main_seller: Migration to 17.0 (#2780)