OdooWiki OCA HUB

Sale Report Filter by State

sale_report_country_state folder_open OCA/sale-reporting open_in_new
Sales License: AGPL-3

This module allows to filter by partner's state in the sale reports.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a "Customer State" filter and grouping option to the Sales analysis report, so users can break down sales figures by the customer's state or province.

This module extends the Sales analysis report (sale.report) with a new field called "Customer State", taken from the customer's address.

In the Sales analysis screen, the search bar now offers a "Customer State" filter, placed right after the existing country filter. Users can select one or more states to narrow the report, or use it as a grouping to see sales totals per state.

Because the state is added to the report's grouping logic, the report can aggregate sales by customer state, and the figures are recalculated accordingly. The field is read-only, so it is only used for filtering and analysis, not for manual entry.

No new menus, buttons, emails, scheduled jobs or business rules are added. The change is limited to the Sales reporting area and the sale.report model.

Depends on

sale
Models and fields (1)
  • sale.report · extends an existing modelstate_id (Customer State)

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/sale-reporting.

terminal Installation and usage

OCA documentation · Odoo 16.0

To filter by state you can either:

  • Go to Sales > Reporting > Sales
  • Group by Customer State or filter for such criteria.
  • Go to Sales > Products > Products and select a product.
  • Press the sales analysis smart button at the top.
  • Filter or group by the Customer State

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.