Skip to content

Commit

Permalink
[MIG] crm_phonecall: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliconiaSolutions committed Feb 24, 2025
1 parent 7074a47 commit a361718
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 48 deletions.
46 changes: 24 additions & 22 deletions crm_phonecall/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ CRM Phone Calls
: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/17.0/crm_phonecall
:target: https://github.com/OCA/crm/tree/18.0/crm_phonecall
:alt: OCA/crm
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_phonecall
:target: https://translation.odoo-community.org/projects/crm-18-0/crm-18-0-crm_phonecall
: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=17.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -52,16 +52,16 @@ To use this module, you need to:
Known issues / Roadmap
======================

- Simplify the function schedule_another_phonecall returning always a
recordset
- Simplify the function schedule_another_phonecall returning always a
recordset

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%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_phonecall%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.

Expand All @@ -77,26 +77,28 @@ Authors
Contributors
------------

- Odoo S.A.
- `Tecnativa <https://www.tecnativa.com>`__
- Odoo S.A.
- `Tecnativa <https://www.tecnativa.com>`__

- Vicent Cubells
- Jairo Llopis
- David Vidal
- Alexandre Díaz
- Stefan Ungureanu
- Vicent Cubells
- Jairo Llopis
- David Vidal
- Alexandre Díaz
- Stefan Ungureanu

- RIDA YAHLA <mireda2012@gmail.com>
- Anand Kansagra <kansagraanand@hotmail.com>
- `Druidoo <https://www.druidoo.io>`__
- RIDA YAHLA <mireda2012@gmail.com>
- Anand Kansagra <kansagraanand@hotmail.com>
- `Druidoo <https://www.druidoo.io>`__

- Iván Todorovich <ivan.todorovich@druidoo.io>
- Manuel Marquez <manuel.marquez@druidoo.io>
- Iván Todorovich <ivan.todorovich@druidoo.io>
- Manuel Marquez <manuel.marquez@druidoo.io>

- Ruchir Shukla <ruchir@bizzappdev.com>
- `APSL-Nagarro <https://apsl.tech>`__:
- Ruchir Shukla <ruchir@bizzappdev.com>
- `APSL-Nagarro <https://apsl.tech>`__:

- Antoni Marroig <amarroig@apsl.net>
- Antoni Marroig <amarroig@apsl.net>

- Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>

Maintainers
-----------
Expand All @@ -111,6 +113,6 @@ 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/17.0/crm_phonecall>`_ project on GitHub.
This module is part of the `OCA/crm <https://github.com/OCA/crm/tree/18.0/crm_phonecall>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion crm_phonecall/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "CRM Phone Calls",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Customer Relationship Management",
"author": "Odoo S.A., Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/crm",
Expand Down
1 change: 1 addition & 0 deletions crm_phonecall/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
- Ruchir Shukla \<<ruchir@bizzappdev.com>\>
- [APSL-Nagarro](https://apsl.tech):
- Antoni Marroig \<<amarroig@apsl.net>\>
- Heliconia Solutions Pvt. Ltd. \<<https://www.heliconia.io>\>
6 changes: 3 additions & 3 deletions crm_phonecall/report/crm_phonecall_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ class CrmPhonecallReport(models.Model):
string="Delay to close",
digits=(16, 2),
readonly=True,
group_operator="avg",
aggregator="avg",
help="Number of Days to close the case",
)
duration = fields.Float(digits=(16, 2), readonly=True, group_operator="avg")
duration = fields.Float(digits=(16, 2), readonly=True, aggregator="avg")
delay_open = fields.Float(
string="Delay to open",
digits=(16, 2),
readonly=True,
group_operator="avg",
aggregator="avg",
help="Number of Days to open the case",
)
partner_id = fields.Many2one(
Expand Down
7 changes: 4 additions & 3 deletions crm_phonecall/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h1 class="title">CRM Phone Calls</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:77200b8ed63c074c39a2d3a2b9d9a6dbc097dc9183965355d04f29afbbc1975f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/crm/tree/17.0/crm_phonecall"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_phonecall"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/crm&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/crm/tree/18.0/crm_phonecall"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/crm-18-0/crm-18-0-crm_phonecall"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/crm&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to manage phone calls in order to analyze them.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand Down Expand Up @@ -411,7 +411,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/crm/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_phonecall%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_phonecall%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -447,6 +447,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
</ul>
</li>
<li>Heliconia Solutions Pvt. Ltd. &lt;<a class="reference external" href="https://www.heliconia.io">https://www.heliconia.io</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -458,7 +459,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/17.0/crm_phonecall">OCA/crm</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/18.0/crm_phonecall">OCA/crm</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions crm_phonecall/tests/test_crm_phonecall.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def setUpClass(cls):
super().setUpClass()
cls.company = cls.env.ref("base.main_company")
partner_obj = cls.env["res.partner"]
cls.campaign1 = cls.env["utm.campaign"].create({"name": "campaign 1"})
cls.source1 = cls.env["utm.source"].create({"name": "source 1"})
cls.medium1 = cls.env["utm.medium"].create({"name": "medium 1"})
cls.campaign1 = cls.env["utm.campaign"].create([{"name": "campaign 1"}])
cls.source1 = cls.env["utm.source"].create([{"name": "source 1"}])
cls.medium1 = cls.env["utm.medium"].create([{"name": "medium 1"}])
cls.partner1 = partner_obj.create(
{
"name": "Partner1",
Expand Down Expand Up @@ -168,7 +168,7 @@ def test_wizard(self):
wizard = (
self.env["crm.phonecall2phonecall"]
.with_context(active_ids=self.phonecall1.ids, active_id=self.phonecall1.id)
.create({})
.create([{}])
)
result = wizard.action_schedule()
search_view_id = self.env.ref(
Expand Down
25 changes: 11 additions & 14 deletions crm_phonecall/views/crm_phonecall_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<field name="name">CRM - Phone Calls Tree</field>
<field name="model">crm.phonecall</field>
<field name="arch" type="xml">
<tree
<list
decoration-info="state in ('pending',)"
decoration-muted="state in ('cancel','done')"
>
Expand All @@ -58,7 +58,7 @@
<field column_invisible="1" name="create_date" />
<field column_invisible="1" name="opportunity_id" />
<field name="state" />
</tree>
</list>
</field>
</record>
<record id="crm_case_phone_form_view" model="ir.ui.view">
Expand Down Expand Up @@ -178,18 +178,15 @@
</group>
<field name="description" placeholder="Description..." />
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" />
<field name="message_ids" widget="mail_thread" />
</div>
<chatter />
</form>
</field>
</record>
<record id="crm_case_inbound_phone_tree_view" model="ir.ui.view">
<field name="name">CRM - Logged Phone Calls Tree</field>
<field name="model">crm.phonecall</field>
<field name="arch" type="xml">
<tree editable="top">
<list editable="top">
<field name="date" />
<field name="name" />
<field name="partner_id" />
Expand Down Expand Up @@ -226,7 +223,7 @@
string="Convert to Opportunity"
type="object"
/>
</tree>
</list>
</field>
</record>
<record id="crm_case_phone_calendar_view" model="ir.ui.view">
Expand Down Expand Up @@ -332,14 +329,14 @@
<record id="crm_case_categ_phone0" model="ir.actions.act_window">
<field name="name">Phone Calls</field>
<field name="res_model">crm.phonecall</field>
<field name="view_mode">tree,form,calendar</field>
<field name="view_mode">list,form,calendar</field>
<field name="view_id" ref="crm_case_phone_tree_view" />
<field name="context">{&quot;search_default_user_id&quot;:uid}</field>
<field name="search_view_id" ref="view_crm_case_phonecalls_filter" />
</record>
<record id="action_crm_tag_tree_phone0" model="ir.actions.act_window.view">
<field eval="1" name="sequence" />
<field name="view_mode">tree</field>
<field name="view_mode">list</field>
<field name="view_id" ref="crm_case_phone_tree_view" />
<field name="act_window_id" ref="crm_case_categ_phone0" />
</record>
Expand All @@ -365,7 +362,7 @@
<record id="crm_case_categ_phone_incoming0" model="ir.actions.act_window">
<field name="name">Logged Calls</field>
<field name="res_model">crm.phonecall</field>
<field name="view_mode">tree,calendar</field>
<field name="view_mode">list,calendar</field>
<field name="view_id" ref="crm_case_inbound_phone_tree_view" />
<field name="domain">[]</field>
<field name="context">
Expand All @@ -389,7 +386,7 @@
</record>
<record id="action_crm_tag_tree_phone_incoming0" model="ir.actions.act_window.view">
<field eval="1" name="sequence" />
<field name="view_mode">tree</field>
<field name="view_mode">list</field>
<field name="view_id" ref="crm_case_inbound_phone_tree_view" />
<field name="act_window_id" ref="crm_case_categ_phone_incoming0" />
</record>
Expand Down Expand Up @@ -417,7 +414,7 @@
<record id="crm_case_categ_phone_outgoing0" model="ir.actions.act_window">
<field name="name">Scheduled Calls</field>
<field name="res_model">crm.phonecall</field>
<field name="view_mode">tree,form,calendar</field>
<field name="view_mode">list,form,calendar</field>
<field name="view_id" ref="crm_case_phone_tree_view" />
<field name="domain">[('state','!=','done')]</field>
<field name="search_view_id" ref="view_crm_case_phonecalls_filter" />
Expand All @@ -435,7 +432,7 @@
</record>
<record id="action_crm_tag_tree_phone_outgoing0" model="ir.actions.act_window.view">
<field eval="1" name="sequence" />
<field name="view_mode">tree</field>
<field name="view_mode">list</field>
<field name="view_id" ref="crm_case_phone_tree_view" />
<field name="act_window_id" ref="crm_case_categ_phone_outgoing0" />
</record>
Expand Down
2 changes: 1 addition & 1 deletion crm_phonecall/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div name="button_box" position="inside">
<button
class="oe_stat_button"
context="{'search_default_partner_id': active_id}"
context="{'search_default_partner_id': id}"
icon="fa-phone"
name="%(crm_phonecall.crm_case_categ_phone_incoming0)d"
type="action"
Expand Down

0 comments on commit a361718

Please sign in to comment.