Metadata-Version: 2.1
Name: odoo-addon-sy_crm_commercial_autoassign
Version: 18.0.1.0.0
Requires-Python: >=3.10
Requires-Dist: odoo-addon-base_location==18.0.*
Requires-Dist: odoo==18.0.*
Summary: Automatically assign salespersons to partners based on ZIP codes
Home-page: https://github.com/sygel-technology/sy-crm
License: AGPL-3
Author: Sygel
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

==============================
CRM Commercial Auto Assignment
==============================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:a456d26ae2831a3702728ce130709d8e9644f518e4ae10851941d39d1bf7c3f2
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-sygel--technology%2Fsy--crm-lightgray.png?logo=github
    :target: https://github.com/sygel-technology/sy-crm/tree/18.0/sy_crm_commercial_autoassign
    :alt: sygel-technology/sy-crm

|badge1| |badge2| |badge3|

Automatically assign salespersons to partners based on ZIP codes

**Table of contents**

.. contents::
   :local:

Usage
=====

To use this module, you need to:

1. Go to **CRM > Configuration > Commercial Auto Assignments**.
2. Create a new commercial auto assignment and configure the following
   fields:

   - **Name**: Name of the assignment.
   - **Salesperson**: User to be automatically assigned to contacts.
   - **ZIP Codes**: Select one or more ZIP codes associated with the
     salesperson.
   - **Company**: Company to which the assignment applies.
   - **Notes**: Additional information about the assignment.

3. Go to **Contacts** and create or edit a contact.
4. Set the contact's **ZIP Code**. If it matches a configured ZIP code,
   the corresponding salesperson will be automatically assigned.
5. Enable **Keep Salesperson** in the **Sales & Purchase** tab to
   prevent automatic reassignment when the contact's ZIP code changes.

**Additional information:**

- Each ZIP code can only be assigned to one commercial auto assignment
  per company.
- When a contact's ZIP code changes, the salesperson is automatically
  recalculated unless **Keep Salesperson** is enabled.
- If no matching ZIP code is found, the existing salesperson is
  preserved.
- Disabling **Keep Salesperson** triggers a new automatic assignment
  based on the contact's current ZIP code.
- Changes to the salesperson and ZIP codes in the assignment
  configuration are tracked in the chatter.

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

Bugs are tracked on `GitHub Issues <https://github.com/sygel-technology/sy-crm/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 <https://github.com/sygel-technology/sy-crm/issues/new?body=module:%20sy_crm_commercial_autoassign%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Sygel

Contributors
------------

- `Sygel <https://www.sygel.es>`__:

  - Ángel Rivas
  - Valentín Vinagre
  - Harald Panten

Maintainers
-----------

This module is part of the `sygel-technology/sy-crm <https://github.com/sygel-technology/sy-crm/tree/18.0/sy_crm_commercial_autoassign>`_ project on GitHub.

You are welcome to contribute.
