Skip to Content

Product Variant To Override Income/Expense Account

We’ve introduced the ability to define income and expense accounts directly at the Product Variant level, enabling more precise financial tracking without the need to duplicate product templates
June 19, 2025 by
Product Variant To Override Income/Expense Account
Silverdale Technology, Somroo Hassaan
| No comments yet

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:

  1. Variant-level income/expense account (if set)
  2. If not found, fallback to Product Template
  3. 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
  • 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.
  • 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.

Share this post
Sign in to leave a comment