# README.rst

# Sale Order Warehouse Location

This module allows to set countries and states in warehouses, so they can automatically be set in a sale order when its shipping address matches the countries and states selected in a given warehouse.

Table of contents

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

## Configuration

In configure countries and states in warehouses you need to:

1. Go to Inventory > Configuration > Warehouses and access a warehouse.
2. Select the countries and/or states where the warehouse has to be automatically set in a sale order based on its shipping address. Only states that belong to the selected countries can be chosen.

## Usage

When the shipping address field in a sale order is modified, it is checked whether a warehouse is applied in the region according to the shipping address’ country and state. In order to determine if the warehouse matches the address, the country in the shipping address must be part of the “Sale Order Countries” field in a warehouse. Moreover, if the warehouse has some states in its “Sale Order States” field, the state in the shipping address must be part of this field too. If no warehouses are found, the default process for warehouse selection is followed.

Keep in mind that the Warehouse field in sale orders is only visible if the user has multi-warehouse rights.

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

- Sygel

### Contributors

- Manuel Regidor <manuel.regidor@sygel.es>
- Valentín Vinadre <valentin.vinagre@sygel.es>

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