This module extends the stock and analytic accounting capabilities by
automatically creating analytic lines from stock based on configurable
rules.
The module is useful for organizations needing precise analytic
accounting for inventory movements, such as manufacturing, logistics, or
services.
- Configure Product Categories
Navigate to Inventory > Configuration > Product Categories.
For each relevant product category, configure the following fields:
- Average Price: Base cost per unit.
- Average Weight: Used to scale the cost relative to quantity.
- Supplement: Additional surcharge applied on top of base cost.
These values are used when the compute type is set to Category.
- Define Analytic Accounts and Plans
Navigate to Accounting > Configuration > Analytic Accounting.
- Create one or more Analytic Plans.
- Create Analytic Accounts linked to these plans.
These accounts will be referenced in the analytic distribution logic of
each model.
- Create Stock Analytic Rules
Navigate to Accounting > Configuration > Stock Analytic Rules.
Configure each rule with:
- Name: Used as the label for the generated analytic lines.
- Source Locations and Destination Locations: Determines when
the model applies.
- Amount Compute Type: Choose between:
- Product – uses the product’s list price.
- Category – uses the category’s formula
(avg_price × weight × qty) + (weight × qty × supplement).
- Analytic Distribution (for positive lines)
- Negative Analytic Distribution (for negative lines)
- Financial Account: Used in the generated analytic line.
📌 Note: The distribution for reversed moves (e.g. returns) is
automatically computed by inverting the accounts — no need to define a
separate rule.
- Perform a Stock Move
Create a Transfer that matches the configured rule:
- It can be internal, delivery, or receipt.
- Ensure the source and destination locations match the analytic rule.
- Review Analytic Lines
Navigate to Accounting > Accounting > Analytic Lines.
You should now see the automatically generated analytic lines reflecting
the cost and distribution defined in your model.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
feedback.
Do not contact contributors directly about support or help with technical issues.