In standard Odoo, income and expense accounts can only be configured at the product template or category level, limiting flexibility when multiple product variants require distinct financial treatment. This SME enhancement introduces the ability to define specific accounts on individual product variants, offering better granular control without duplicating templates.
The module introduces a smart account selection hierarchy:
- Variant-level income/expense account (if set)
- If not found, fallback to Product Template
- If still undefined, fallback to Product Category
This ensures that during sales, purchases, and accounting entries, the system always uses the most relevant account with zero disruption to standard flows.
Functionality:
- Account Fields on Variants:
- New fields added to product.product to define:
- Income Account
- Expense Account
- New fields added to product.product to define:
- Dynamic Fallback Logic:
- When posting sales/purchase entries, the system checks:
- If a variant account is defined → use it.
- If not → check template.
- If still missing → fallback to product category.
- When posting sales/purchase entries, the system checks:
- Seamless Integration:
- Fully compatible with existing invoice, purchase order, and inventory workflows.
- No manual intervention needed during transaction creation.
Benefits:
- Accurate P&L Reporting: Report profitability per product variant (e.g., color, size, model).
- No Template Duplication: Avoid creating separate product templates just for account assignment.
- Reduced Errors: Eliminate the need for manual overrides on each transaction.
- Audit-Friendly: Clear traceability of account source across transactions.
Conclusion:
The Product Variant to Override Income/Expense Account feature brings flexibility, accuracy, and efficiency to financial operations by allowing direct control of accounts at the most granular level. It ensures clean accounting practices while preserving Odoo’s natural fallback behavior.
Product Variant To Override Income/Expense Account