.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
   :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
   :alt: License: AGPL-3

==============================
Purchase Equal Ref and Barcode
==============================

* New functionality to maintain the same value on reference and
  barcode fields for partners.
* New constraint to preserve the unique value for barcode field.


Configuration
===============
To configure this module, you need to:

1. Go to Settings > Companies.
2. Select a company.
3. Choose an option on section Partners.

Usage
===============
Go to any partner in Contacts > Contacts
Try to create two partners with the same barcode.

* If you selected the option 'All partners' you can't create two partners with the same barcode.
* If you selected the option 'Only companies' you can't create two companies with the same barcode.
* If you selected the option 'None' you can create two partners with the same barcode.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/odoo-addons/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Credits
=======

Contributors
------------
* Ana Juaristi <anajuaristi@avanzosc.es>
* Adrian Revilla <adrianrevilla@avanzosc.es>

Do not contact contributors directly about support or help with technical issues.
