# Sales order invoicing grouping criteria

This module allows to use custom criteria for grouping sales orders to be invoiced.

Default criteria for grouping (invoicing partner, company and used currency) will be always applied, as if not respected, there will be business inconsistencies, but you can add more fields to split the invoicing according them.

Table of contents

- Configuration
- Usage
- Bug Tracker
- Credits
  - Authors
  - Contributors
  - Maintainers

# Configuration

For creating new grouping criteria:

1. Go to Invoicing > Configuration > Management > Invoicing Grouping Criteria.
2. Create or modify existing criteria, selecting fields belonging to “Sales Order” header model for grouping according them.
3. Invoicing address and currency will always be applied with the selected ones.

For setting a different grouping criteria for a specific customer:

1. Go to Invoicing > Customer > Customers.
2. Open the desired customer.
3. Go to Invoicing page.
4. Set on “Sales Invoicing Grouping Criteria” the desired grouping criteria.

For setting a different default grouping criteria than the standard for the whole company:

1. Go to Invoicing > Configuration> Settings.
2. Locate inside “Sales Order Invoicing” section, the field “Default Grouping Criteria”.
3. Introduce there the grouping criteria to be applied by default. If empty, the general default of invoicing address + currency + company will be applied.

# Usage

1. Go to Sales > To Invoice > Orders to Invoice.
2. Select sales orders whose invoicing you want to do.
3. Click on Action > Invoice Order.
4. Click on “Create and View Invoices” button.
5. On that moment, the grouping criteria will be applied, and you will see different invoices if the criteria doesn’t match for them.

# Bug Tracker

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.

# Credits

## Authors

- Tecnativa

## Contributors

- Tecnativa:
  - Pedro M. Baeza
  - Carlos Lopez
- Sygel:
  - Valentin Vinagre valentin.vinagre@sygel.es
  - Roger Sans roger.sans@sygel.es
- Dynapps:
  - Bert Van Groenendael bert.vangroenendael@dynapps.eu

## Maintainers

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

This module is part of the OCA/account-invoicing project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.