Sales by channel
How much did I sell in each channel (sales team, e-commerce, physical store, marketplace), against the previous month and the target?
Verified Metric version 1.0.0
What it is
Net sales (point of sale + customer invoices, before taxes, minus returns, without counting twice a point-of-sale order that got an invoice) of each channel in the period, against the previous period and the sales team's target in Odoo. The channel is the physical store (point of sale), e-commerce (an order with a website) or the invoice's sales team; a marketplace shows up as the sales team its connector uses.
What it is not
- It is not the sum of confirmed orders: an order without an invoice is not a sale (see venda_confirmada_sem_nota).
- It is not Odoo's "Invoiced This Month", which counts only paid invoices: here a posted invoice counts, paid or not.
- It does not make up a target: without a target on the sales team, the answer says there is none.
Pitfalls this metric handles
The traps a hasty calculation falls into — and how this metric avoids each one.
Made-up target
- The mistake
- Using a target that is not in Odoo, or the monthly average, as if it were the target.
- Why it happens
- The number gets a goal nobody set.
- How we handle it
- Only crm.team.invoiced_target; zero or no field, the answer says "no target set in Odoo".
Target without history
- The mistake
- Comparing a past month with Odoo's target as if it were that month's target.
- Why it happens
- Odoo keeps a single target per team, the current month's; October's may have changed.
- How we handle it
- Outside the current month, the answer warns that the target is the one set today.
Point-of-sale order with an invoice
- The mistake
- Counting the invoice of a point-of-sale order as a sales team sale.
- Why it happens
- The sale happened in the physical store; it would change channel.
- How we handle it
- An invoice whose origin is a point-of-sale order belongs to the physical store.
Return
- The mistake
- Taking the return out of any channel.
- Why it happens
- The returned sale's channel keeps a sale that no longer exists.
- How we handle it
- The return comes out of the original sale's channel; if not found, the return's team.
Where the number comes from
Audit trail
- Odoo model
account.move + pos.order + sale.order + crm.team- Fields
account.move.team_id,account.move.invoice_origin,sale.order.website_id,sale.order.team_id,crm.team.invoiced_target,pos.order.amount_total,pos.order.amount_tax- Why this path
- The net sales sources, so the total matches it; the channel comes from the point of sale, the order's website and the invoice's sales team, and the target from the sales team's target field in Odoo.
How you can adjust it
| Parameter | What it does | Options |
|---|---|---|
| Companies | company ids, always explicit | — |
| Period | {from, to} in local dates or relative; without a period, the current month to date | — |
| Sort by | order of the channels | amount, name, and change |
Validation
To be validated on a real database. The method comes from a script that already ran in a customer's operation, and the calculation passes the automated tests against the demo database. IntData has not yet checked it on a real database; until then, check the first result in Odoo using the path in the audit trail.
- Date
- November 2, 2026
- Checked against
- The demo database: the sum of the channels matches net sales for the same period. To be validated on a real database.
- Expected Odoo versions
14.0,16.0,17.0,18.0,19.0,20.0- Note
- The sales team and the target come from the sale module; e-commerce from website_sale; the physical store from point_of_sale. Without one of them, that channel does not show. Does not use read_group.
Need a variation of this metric, or another one that does not exist yet?