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

[9.0][ADD] crm_phonecall module #131

Merged
merged 6 commits into from
Mar 24, 2017
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
59 changes: 59 additions & 0 deletions crm_phonecall/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.. 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

==============
Crm Phonecalls
==============

* This module allows to manage phone calls in order to analyze them.

Usage
=====

To use this module, you need to:

* Go to *Sales > Phone Calls > Logged Calls > Create*.
* If your user has *Show Scheduled Calls Menu* permission, you will see
scheduled calls menu too.
* In any moment you can schedule another call, schedule a meeting or convert
call contact to opportunity.
* Calls can be categorized and you can manage categories in *Sales >
Configuration > Leads & Opportunities > Phone Calls > Categories*.
* Calls can be analyzed in *Sales > Reports > Phone Calls Analysis*.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/134/9.0

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 smash it by providing detailed and welcomed
feedback.

Credits
=======

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

* Odoo S.A.
* Vicent Cubells <vicent.cubells@tecnativa.com>

Maintainer
----------

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

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.

To contribute to this module, please visit http://odoo-community.org.
36 changes: 36 additions & 0 deletions crm_phonecall/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
from . import wizard
from . import report


xmlid_renames = [
('crm.group_scheduled_calls', 'crm_phonecall.group_scheduled_calls'),
('crm.filter_crm_phonecall_phone_call_to_do',
'crm_phonecall.filter_crm_phonecall_phone_call_to_do'),
('crm.filter_crm_phonecall_delay_to_close',
'crm_phonecall.filter_crm_phonecall_delay_to_close'),
('crm.filter_crm_phonecall_sales_team',
'crm_phonecall.filter_crm_phonecall_sales_team'),
]


def column_exists(cr, table, column):
cr.execute("""
SELECT column_name
FROM information_schema.columns
WHERE table_name = %s AND column_name = %s""", (table, column))
return bool(cr.fetchall())


def rename_xmlids_hook(cr):
# Retrieve column phone_id saved on crm migration
if column_exists(cr, 'calendar_event', 'phone_id'):
cr.execute("""
ALTER TABLE calendar_event
RENAME COLUMN openupgrade_legacy_90_phone_id TO phone_id""")
from openupgradelib import openupgrade
openupgrade.rename_xmlids(cr, xmlid_renames)
31 changes: 31 additions & 0 deletions crm_phonecall/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "CRM Phone Calls",
"version": "9.0.1.0.0",
"category": "Customer Relationship Management",
"author": "Odoo S.A., "
"Tecnativa, "
"Odoo Community Association (OCA)",
"website": "http://www.tecnativa.com",
"license": "AGPL-3",
"contributors": [
"Vicent Cubells <vicent.cubells@tecnativa.com>",
],
"depends": [
'crm',
'calendar',
],
"data": [
'security/crm_security.xml',
'security/ir.model.access.csv',
'wizard/crm_phonecall_to_phonecall_view.xml',
'views/crm_phonecall_view.xml',
'views/res_partner_view.xml',
'report/crm_phonecall_report_view.xml',
],
'installable': True,
"pre_init_hook": "rename_xmlids_hook",
}
Loading