-
-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from Yajo/crm_phonecall_category
[8.0][crm_phonecall_category] Phonecall category
- Loading branch information
Showing
5 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.. 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 | ||
|
||
================== | ||
Phonecall Category | ||
================== | ||
|
||
This module extends the functionality of CRM phone calls to support showing the | ||
category directly in their tree view allowing you to search and group by that | ||
field too. Category here usually means *Inbound* or *Outbound*. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
#. Go to *Sales > Phone Calls > Logged Calls*. | ||
|
||
There you have the field in the list view, and now you have a search shortcut | ||
for it. | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/111/8.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 smashing it by providing a detailed and welcomed `feedback | ||
<https://github.com/OCA/ | ||
crm/issues/new?body=module:%20 | ||
crm_phonecall_category%0Aversion:%20 | ||
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* Rafael Blasco <rafabn@antiun.com> | ||
* Jairo Llopis <yajo.sk8@gmail.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 https://odoo-community.org. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 Antiun Ingeniería S.L. - Jairo Llopis | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Phonecall Category", | ||
"summary": "Show the already-existing field in tree and search views", | ||
"version": "8.0.1.0.0", | ||
"category": "Customer Relationship Management", | ||
"website": "http://www.antiun.com", | ||
"author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"depends": [ | ||
"crm", | ||
], | ||
"data": [ | ||
"views/crm_phonecall_view.xml", | ||
], | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- © 2016 Antiun Ingeniería S.L. - Jairo Llopis | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> | ||
|
||
<openerp> | ||
<data> | ||
|
||
<record id="crm_case_phone_tree_view" model="ir.ui.view"> | ||
<field name="name">Show category</field> | ||
<field name="model">crm.phonecall</field> | ||
<field name="inherit_id" ref="crm.crm_case_phone_tree_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='categ_id']" position="attributes"> | ||
<attribute name="invisible">False</attribute> | ||
<attribute name="widget">selection</attribute> | ||
<attribute name="domain">[ | ||
('object_id.model', '=', 'crm.phonecall'), | ||
]</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="crm_case_inbound_phone_tree_view" model="ir.ui.view"> | ||
<field name="name">Show category</field> | ||
<field name="model">crm.phonecall</field> | ||
<field name="inherit_id" ref="crm.crm_case_inbound_phone_tree_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='categ_id']" position="attributes"> | ||
<attribute name="invisible">False</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="view_crm_case_phonecalls_filter" model="ir.ui.view"> | ||
<field name="name">Search by category</field> | ||
<field name="model">crm.phonecall</field> | ||
<field name="inherit_id" ref="crm.view_crm_case_phonecalls_filter"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='user_id']" position="after"> | ||
<field name="categ_id"/> | ||
</xpath> | ||
<xpath expr="//group[@string='Group By']"> | ||
<filter string="Category" context="{'group_by': 'category'}"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |