Metadata-Version: 2.1
Name: odoo-addon-crm_phonecall_planner
Version: 15.0.1.0.2.1
Summary: Schedule phone calls according to some criteria
Home-page: https://github.com/OCA/crm
Author: Tecnativa, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: AGPL-3
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 15.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Requires-Python: >=3.8
Requires-Dist: odoo-addon-crm-phonecall<15.1dev,>=15.0dev
Requires-Dist: odoo-addon-partner-phonecall-schedule<15.1dev,>=15.0dev
Requires-Dist: odoo<15.1dev,>=15.0a

=================
Phonecall planner
=================

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

.. |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-OCA%2Fcrm-lightgray.png?logo=github
    :target: https://github.com/OCA/crm/tree/15.0/crm_phonecall_planner
    :alt: OCA/crm
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/crm-15-0/crm-15-0-crm_phonecall_planner
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=15.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Use this module to plan a phone calls schedule for your partners, assuming you
have specified the ideal time to call them.

**Table of contents**

.. contents::
   :local:

Configuration
=============

To use this module, you need to specify your partners' preferred phone call
schedule:

#. Go to any partner's form > *Phone Calls*.
#. Set the preferred phone calling schedule for the partner.
#. Repeat above steps for all of your partners.

Usage
=====

Now, to actually generate the phone call planning:

#. Go to *Sales > Phone Calls > Planner*.
#. Fill the fields under *Call details*. Those fields will be saved literally
   in the generated phone calls.
#. Fill the fields under *Criteria*. Those fields are used to filter the
   partners and the preexisting calls. The UTM fields will also be saved
   literally in the generated phone calls.
#. Fill the fields under *Times*. See note below.
#. Fill the fields under *Repetition*. See note below.
#. Press *Generate planning*.
#. Wait a little bit (this is usually a long process).
#. You will get to the list of planned phone calls. Start calling!

Note about *Times* section
~~~~~~~~~~~~~~~~~~~~~~~~~~

The *Start* and *End* times behave in a special way:

* Their *date* part is used to know the start and end dates for the planning.
* Their *time* part is used to know the time at which we will plan calls *each
  day under the date range*.

The *Call duration* field indicates the time spacing you want to leave between
one call and the next one.

So, for instance, if you select start on *2017-09-01 09:00:00*, end on
*2017-09-03 10:00:00* and duration of *1:00*, it will try to generate these
phone calls:

* 2017-09-01 09:00:00
* 2017-09-01 10:00:00
* 2017-09-02 09:00:00
* 2017-09-02 10:00:00
* 2017-09-03 09:00:00
* 2017-09-03 10:00:00

Note about *Repetition* section
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you choose not to repeat calls, the planner will try to schedule one single
phone call for each **criteria combination** (*Partner + Campaign + Source +
Medium*) under the specified conditions in the *Times* section (see note above).

If you choose instead to repeat calls after some amount of days (*Days gap*),
the planner will:

#. Try to find a partner that matches the **criteria combination** and has never
   been called; then schedule a call for him.
#. If all matching partners have already been called, then search for matching
   partners that have not been called in the specified *Days gap*; then schedule a
   call for the one with least total scheduled calls.
#. If there is still no match, then schedule nothing and continue.

Known issues / Roadmap
======================

* Incompatible with ``crm_phonecall_summary_predefined`` addon.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/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/OCA/crm/issues/new?body=module:%20crm_phonecall_planner%0Aversion:%2015.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
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

  * Jairo Llopis <jairo.llopis@tecnativa.com>
  * David Vidal <david.vidal@tecnativa.com>
  * Alexandre Díaz <alexandre.diaz@tecnativa.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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/crm <https://github.com/OCA/crm/tree/15.0/crm_phonecall_planner>`_ project on GitHub.

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