From a361718918f1e0823798c58123273b3dd4096125 Mon Sep 17 00:00:00 2001 From: Heliconia Solutions Date: Fri, 29 Nov 2024 10:14:34 +0530 Subject: [PATCH] [MIG] crm_phonecall: Migration to 18.0 --- crm_phonecall/README.rst | 46 ++++++++++---------- crm_phonecall/__manifest__.py | 2 +- crm_phonecall/readme/CONTRIBUTORS.md | 1 + crm_phonecall/report/crm_phonecall_report.py | 6 +-- crm_phonecall/static/description/index.html | 7 +-- crm_phonecall/tests/test_crm_phonecall.py | 8 ++-- crm_phonecall/views/crm_phonecall_view.xml | 25 +++++------ crm_phonecall/views/res_partner_view.xml | 2 +- 8 files changed, 49 insertions(+), 48 deletions(-) diff --git a/crm_phonecall/README.rst b/crm_phonecall/README.rst index 08176d3aa81..30dd900f87e 100644 --- a/crm_phonecall/README.rst +++ b/crm_phonecall/README.rst @@ -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| @@ -52,8 +52,8 @@ 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 =========== @@ -61,7 +61,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -77,26 +77,28 @@ Authors Contributors ------------ -- Odoo S.A. -- `Tecnativa `__ +- Odoo S.A. +- `Tecnativa `__ - - Vicent Cubells - - Jairo Llopis - - David Vidal - - Alexandre Díaz - - Stefan Ungureanu + - Vicent Cubells + - Jairo Llopis + - David Vidal + - Alexandre Díaz + - Stefan Ungureanu -- RIDA YAHLA -- Anand Kansagra -- `Druidoo `__ +- RIDA YAHLA +- Anand Kansagra +- `Druidoo `__ - - Iván Todorovich - - Manuel Marquez + - Iván Todorovich + - Manuel Marquez -- Ruchir Shukla -- `APSL-Nagarro `__: +- Ruchir Shukla +- `APSL-Nagarro `__: - - Antoni Marroig + - Antoni Marroig + +- Heliconia Solutions Pvt. Ltd. Maintainers ----------- @@ -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 `_ project on GitHub. +This module is part of the `OCA/crm `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_phonecall/__manifest__.py b/crm_phonecall/__manifest__.py index 630859412e1..fb7bb0e1713 100644 --- a/crm_phonecall/__manifest__.py +++ b/crm_phonecall/__manifest__.py @@ -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", diff --git a/crm_phonecall/readme/CONTRIBUTORS.md b/crm_phonecall/readme/CONTRIBUTORS.md index a3b5032b7eb..8cb7abd5510 100644 --- a/crm_phonecall/readme/CONTRIBUTORS.md +++ b/crm_phonecall/readme/CONTRIBUTORS.md @@ -13,3 +13,4 @@ - Ruchir Shukla \<\> - [APSL-Nagarro](https://apsl.tech): - Antoni Marroig \<\> +- Heliconia Solutions Pvt. Ltd. \<\> diff --git a/crm_phonecall/report/crm_phonecall_report.py b/crm_phonecall/report/crm_phonecall_report.py index d1a2a2c71eb..94b94765f21 100644 --- a/crm_phonecall/report/crm_phonecall_report.py +++ b/crm_phonecall/report/crm_phonecall_report.py @@ -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( diff --git a/crm_phonecall/static/description/index.html b/crm_phonecall/static/description/index.html index ae16ad7ecb3..6a0dd809f8d 100755 --- a/crm_phonecall/static/description/index.html +++ b/crm_phonecall/static/description/index.html @@ -369,7 +369,7 @@

CRM Phone Calls

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:77200b8ed63c074c39a2d3a2b9d9a6dbc097dc9183965355d04f29afbbc1975f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/crm Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/crm Translate me on Weblate Try me on Runboat

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

Table of contents

@@ -411,7 +411,7 @@

Bug Tracker

Bugs are tracked on GitHub 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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -447,6 +447,7 @@

Contributors

  • Antoni Marroig <amarroig@apsl.net>
  • +
  • Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>
  • @@ -458,7 +459,7 @@

    Maintainers

    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 project on GitHub.

    +

    This module is part of the OCA/crm project on GitHub.

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

    diff --git a/crm_phonecall/tests/test_crm_phonecall.py b/crm_phonecall/tests/test_crm_phonecall.py index 12fe30816b9..e995cd82479 100644 --- a/crm_phonecall/tests/test_crm_phonecall.py +++ b/crm_phonecall/tests/test_crm_phonecall.py @@ -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", @@ -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( diff --git a/crm_phonecall/views/crm_phonecall_view.xml b/crm_phonecall/views/crm_phonecall_view.xml index 027b12d2e48..e2ad86a9971 100644 --- a/crm_phonecall/views/crm_phonecall_view.xml +++ b/crm_phonecall/views/crm_phonecall_view.xml @@ -31,7 +31,7 @@ CRM - Phone Calls Tree crm.phonecall - @@ -58,7 +58,7 @@ - + @@ -178,10 +178,7 @@ -
    - - -
    +
    @@ -189,7 +186,7 @@ CRM - Logged Phone Calls Tree crm.phonecall - + @@ -226,7 +223,7 @@ string="Convert to Opportunity" type="object" /> - + @@ -332,14 +329,14 @@ Phone Calls crm.phonecall - tree,form,calendar + list,form,calendar {"search_default_user_id":uid} - tree + list @@ -365,7 +362,7 @@ Logged Calls crm.phonecall - tree,calendar + list,calendar [] @@ -389,7 +386,7 @@ - tree + list @@ -417,7 +414,7 @@ Scheduled Calls crm.phonecall - tree,form,calendar + list,form,calendar [('state','!=','done')] @@ -435,7 +432,7 @@ - tree + list diff --git a/crm_phonecall/views/res_partner_view.xml b/crm_phonecall/views/res_partner_view.xml index c3393fff587..ce53fc713d0 100644 --- a/crm_phonecall/views/res_partner_view.xml +++ b/crm_phonecall/views/res_partner_view.xml @@ -9,7 +9,7 @@