Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] crm_salesperson_planner #496

Merged
merged 7 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions crm_salesperson_planner/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
=======================
Crm Salesperson Planner
=======================

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

.. |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/16.0/crm_salesperson_planner
:alt: OCA/crm
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_salesperson_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=16.0
:alt: Try me on Runboat

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

This application allows you to track and schedule salespeople visits to your customers, allowing you to determine which opportunities are going to be dealt on each visit. Visits create an all day event in calendar, and they can be easily rescheduled.
Visits can be automatically created from a template, in which it is possible to select the frequency of visits, as well as the start and end dates. The last visit can also be calculated by selecting the total number of repetitions.
This module creates a cron that generates visits from templates, but an option to create them manually is available from the template form view when the template is validated.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

* Go to new menu **CRM > Configuration > Salesperson Planner > Close Reasons** and create a close reason for 'Cancel' and 'Incident' types.

Usage
=====

Go to new menu **CRM > Salesperson Planner > My Visits or All Visits** and create a new visit.
or
Go to **CRM > Salesperson Planner > Visit Templates** and create a new recurring template for create periodical visits. In this case, it is necessary to select a start date. The date of the last repetition can be calculated by selection the total number of repetitions or an end date.
There are two options available to reschedule visits that is already validated:
* Change the date from the visit.
* Change the date straight from the event automatically created in the calendar.

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_salesperson_planner%0Aversion:%2016.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 Technology

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

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

* Valentin Vinagre
* Manuel Regidor

* `Pesol <https://www.pesol.es>`__:

* Gerardo Marin Parra <info@pesol.es>

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/16.0/crm_salesperson_planner>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions crm_salesperson_planner/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from . import models
from . import wizards
27 changes: 27 additions & 0 deletions crm_salesperson_planner/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2021 Sygel - Valentin Vinagre
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
{
"name": "Crm Salesperson Planner",
"version": "16.0.1.0.0",
"development_status": "Beta",
"category": "Customer Relationship Management",
"author": "Sygel Technology," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/crm",
"license": "AGPL-3",
"depends": ["crm", "calendar"],
"data": [
"data/crm_salesperson_planner_sequence.xml",
"wizards/crm_salesperson_planner_visit_close_wiz_view.xml",
"wizards/crm_salesperson_planner_visit_template_create.xml",
"views/crm_salesperson_planner_visit_views.xml",
"views/crm_salesperson_planner_visit_close_reason_views.xml",
"views/crm_salesperson_planner_visit_template_views.xml",
"views/crm_salesperson_planner_menu.xml",
"views/res_partner.xml",
"views/crm_lead.xml",
"data/ir_cron_data.xml",
"security/crm_salesperson_planner_security.xml",
"security/ir.model.access.csv",
],
"installable": True,
}
17 changes: 17 additions & 0 deletions crm_salesperson_planner/data/crm_salesperson_planner_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2021 Sygel - Valentin Vinagre
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="sequence_salesperson_planner_visit" model="ir.sequence">
<field name="name">Salesperson Planner visit Code</field>
<field name="code">salesperson.planner.visit</field>
<field eval="6" name="padding" />
<field name="prefix">SPPV/</field>
</record>
<record id="sequence_salesperson_planner_visit_template" model="ir.sequence">
<field name="name">Salesperson Planner visit Template Code</field>
<field name="code">salesperson.planner.visit.template</field>
<field eval="6" name="padding" />
<field name="prefix">SPPVT/</field>
</record>
</odoo>
15 changes: 15 additions & 0 deletions crm_salesperson_planner/data/ir_cron_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Sygel - Valentin Vinagre
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="ir_cron_create_visits" model="ir.cron">
<field name="name">CRM: Create salesperson visits</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="model_id" ref="model_crm_salesperson_planner_visit_template" />
<field name="code">model._cron_create_visits(days=7)</field>
<field name="state">code</field>
</record>
</odoo>
Loading