| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 3403 |
| Technical Name |
grev_od_commodity_base |
| License | OPL-1 |
| Website | https://www.grevlin.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 3403 |
| Technical Name |
grev_od_commodity_base |
| License | OPL-1 |
| Website | https://www.grevlin.com |
🌱 Commodity BaseDomain-Agnostic Master Data for Commodity Types, Grades, Quality Parameters & Reference Configuration
|
|
|
|
|
|
📞 Need Help?
|
|
Grevlin Commodity Procurement Suite Enterprise-Grade Commodity Procurement Solutions for Odoo © 2026 Grevlin Global Corp. All Rights Reserved. Compatible with Odoo 19.0 | Licensed under OPL-1 |
Commodity Base
The Commodity Base module is the foundational hub of the Grevlin Commodity Procurement Suite. It provides domain-agnostic master data for commodity types, quality grades, quality parameters, forms/cuts, origin regions, procurement seasons, packaging types, regulatory standards, and quality profiles — consumed by all downstream commodity modules.
Overview
This module defines the shared configuration layer that every other commodity module depends on: supplier management, contracts, delivery, quality inspection, warehousing, and settlement all reference Commodity Base for their master data.
Key Capabilities
- Commodity Domains — six pre-configured sectors (grains, meat, fish, dairy, oils, industrial) with cold chain and food safety flags.
- Hierarchical Categories — multi-level category trees within each domain for fine-grained classification.
- Commodity Types — the core entity, linked to product.product and uom.uom, with mail tracking and unique codes per company.
- Quality Grades — per-commodity grade definitions with accepted/rejected flags, price adjustment percentages, and minimum quality score thresholds.
- Quality Parameters — measurable attributes with min/max acceptable ranges, reject thresholds, per-unit penalties, and linked test methods.
- Forms / Cuts / Presentations — hierarchical form types (whole, primal, sub-primal, retail, processed) with yield percentages, cold chain requirements, and shelf life.
- Regulatory Standards — standard registry (EAC, EU, USDA, ISO, Codex) with country applicability and import/export flags.
- Quality Standard Profiles — per-commodity parameter threshold overrides mapped to a governing standard for regional compliance.
- Reference Data — origin regions, procurement seasons, packaging types, price basis (Incoterms), unit conversion factors, and storage conditions.
- Centralized Security Groups — User / Officer / Manager groups inherited by all commodity modules.
Note
This is a pure master data module — no workflow states, no transactional logic. All models are configuration records.
Configuration
Commodity Domains
Six commodity domains ship as seed data. To add a custom domain:
- Go to :menuselection:`Commodity --> Configuration --> Domains`.
- Click :guilabel:`Create`.
- Set :guilabel:`Domain Name`, :guilabel:`Code`, and flags:
- :guilabel:`Requires Cold Chain` — for temperature-sensitive commodities.
- :guilabel:`Food Commodity` — subject to food safety regulations.
- Click :guilabel:`Save`.
Commodity Types
- Go to :menuselection:`Commodity --> Configuration --> Types`.
- Click :guilabel:`Create`.
- Fill in required fields:
- :guilabel:`Commodity Name` and :guilabel:`Code` (unique per company).
- :guilabel:`Commodity Domain` and :guilabel:`Category`.
- :guilabel:`Unit of Measure` — the primary procurement UoM.
- Optionally link a :guilabel:`Linked Product` from the Odoo product catalog.
- Click :guilabel:`Save`.
Important
The commodity code must be unique within the company. The SQL constraint code_company_uniq enforces this at the database level.
Quality Grades
- Open a commodity type and navigate to the :guilabel:`Grades` tab.
- Click :guilabel:`Add a line`.
- Set :guilabel:`Grade Name`, :guilabel:`Code`, and:
- :guilabel:`Accepted for Purchase` — uncheck to mark a grade as rejected.
- :guilabel:`Price Adjustment (%)` — positive for premium, negative for discount.
- :guilabel:`Minimum Quality Score` — the threshold to qualify for this grade.
- Click :guilabel:`Save`.
Tip
The price_adjustment_pct value is consumed downstream by the settlement module to calculate the final purchase price. Set it once here and it applies across all settlement computations.
Quality Parameters
- Open a commodity type and navigate to the :guilabel:`Quality Parameters` tab.
- Click :guilabel:`Add a line`.
- Define the parameter:
- :guilabel:`Parameter Name` and :guilabel:`Code`.
- :guilabel:`Min Acceptable` / :guilabel:`Max Acceptable` — the acceptable range.
- :guilabel:`Reject Threshold` — triggers auto-reject in the commodity quality module.
- :guilabel:`Penalty per Unit` — monetary deduction per unit of deviation, applied in settlement.
- :guilabel:`Test Method` — optional link to a laboratory procedure.
- Click :guilabel:`Save`.
Quality Standard Profiles
Profiles override the default parameter thresholds for a specific regulatory standard or market requirement.
- Go to :menuselection:`Commodity --> Configuration --> Quality Profiles`.
- Click :guilabel:`Create`.
- Select :guilabel:`Commodity Type` and :guilabel:`Governing Standard`.
- In the :guilabel:`Parameter Thresholds` tab, add lines with per-parameter min, max, reject threshold, and penalty overrides.
- Click :guilabel:`Save`.
Storage Conditions
- Open a commodity type and navigate to the :guilabel:`Storage Conditions` tab.
- Click :guilabel:`Add a line`.
- Select :guilabel:`Storage Type` (ambient, chilled, frozen, controlled atmosphere, liquid tank).
- Set temperature range, humidity, max storage days, and fumigation/aeration requirements.
- Optionally specify :guilabel:`Incompatible Commodities` that cannot share storage.
- Click :guilabel:`Save`.
Security Groups
The module defines three centralized groups under the Commodity Procurement category. All other commodity modules reference these groups — they do not define their own.
Commodity User (group_commodity_user)
- Read-only access to all commodity master data.
- Cannot create or edit records.
Commodity Officer (group_commodity_officer)
- Create and edit commodity types, grades, parameters, and all reference data.
- Cannot delete records.
- Inherits Commodity User permissions.
Commodity Manager (group_commodity_manager)
- Full CRUD including delete on all commodity models.
- Can manage security-sensitive configuration.
- Inherits Commodity Officer permissions.
Note
Multi-company record rules apply to all models using the pattern ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)].
Usage
Setting Up a New Commodity
The typical setup sequence for a new commodity:
- Verify or create the commodity :guilabel:`Domain` and :guilabel:`Category`.
- Create the :guilabel:`Commodity Type` with product and UoM links.
- Add :guilabel:`Grades` with price adjustments.
- Add :guilabel:`Quality Parameters` with test methods, reject thresholds, and penalties.
- Add :guilabel:`Forms / Cuts` if applicable (especially for meat and fish).
- Add :guilabel:`Storage Conditions` if the commodity has specific temperature or fumigation requirements.
- Optionally create a :guilabel:`Quality Standard Profile` for each target market (domestic, EU export, etc.).
Tip
Complete this setup before deploying downstream modules (supplier, contract, delivery, quality, warehouse, settlement). They all depend on the master data defined here.
Technical Details
Data Model
| Model | Type | Description |
|---|---|---|
| grev.commodity.domain | Model | Commodity sector (grains, meat, fish, dairy, oils, industrial). |
| grev.commodity.category | Model | Hierarchical category within a domain. |
| grev.commodity.type | Model + mail.thread | Core commodity definition with product and UoM links. |
| grev.commodity.grade | Model | Quality grade with price adjustment and acceptance flag. |
| grev.commodity.quality.param | Model | Quality parameter with thresholds and penalties. |
| grev.commodity.form | Model | Form / cut / presentation with yield hierarchy. |
| grev.commodity.origin | Model | Origin region for provenance tracking. |
| grev.commodity.season | Model | Procurement season with date range. |
| grev.commodity.packaging | Model | Packaging type definitions. |
| grev.commodity.price.basis | Model | Price basis (Incoterms) reference. |
| grev.commodity.conversion | Model | Unit conversion factors between UoMs. |
| grev.commodity.test.method | Model | Laboratory test method definitions. |
| grev.commodity.standard | Model | Regulatory standard registry. |
| grev.commodity.quality.profile | Model | Standard-mapped parameter threshold overrides. |
| grev.commodity.quality.profile.line | Model | Per-parameter override lines within a profile. |
| grev.commodity.storage.condition | Model | Storage requirements per commodity type. |
Dependencies
- base — core framework
- product — product catalog integration
- uom — unit of measure definitions
- mail — chatter tracking on commodity types
See Also
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module