# Sale delivery State

This odoo module add delivery state on the sale order.

Delivery state is computed based on qty_delivered field on sale order lines.

This is usefull for other modules to provide the state of delivery. The state of the sale order can be forced to fully delivered in case some quantities were cancelled by the customer and you consider you have nothing more to deliver.

Sale order lines can have products or services, as long as the field qty_delivered is set, it will trigger the computation of delivery state.

Sale order lines with the Skip Delivery State field set to True will be ignored when computing the delivery state. This field is automatically set depending on the field Sales > Configuration > Quotations & Orders > Skip Service products for Sale Delivery State. If set to True, the field Skip Delivery State in sale order lines containing service products will be automatically set to True, but it can manually changed.

This module also works with delivery.carrier fees that are added as a sale order line. Thoses line are special as they will never be considered delivered. Delivery fees lines are ignored in the computation of the delivery state.

When the ‘sale_stock’ module is installed, the glue module ‘sale_stock_delivery_state’ should also be installed; this module is designed to override the compute method of the delivery status field from ‘sale_stock’.

Table of contents

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

## Configuration

#. Go to Sales > Configuration > Quotations & Orders. #. Check the Skip Service products for Sale Delivery State checkbox to automatically set the field Skip Delivery State in sale order lines to True when the line contains a service product.

## 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

- Akretion

### Contributors

- Pierrick BRUN <pierrick.brun@akretion.com>
- Benoît Guillot <benoit.guillot@akretion.com>
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
- Daniel Reis <dreis@opensourceintegrators.com>, Open Source Integrators
- Carlos Lopez <celm1990@gmail.com>
- Virendrasinh Dabhi <veer.190.dabhi@gmail.com>
- Manuel Regidor manuel.regidor@sygel.es
- Simone Orsi simone.orsi@camptocamp.com

### 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.

This module is part of the OCA/sale-workflow project on GitHub.

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