diff --git a/crm_phonecall/README.rst b/crm_phonecall/README.rst index 08176d3aa810..30dd900f87ed 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 630859412e16..fb7bb0e17131 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 a3b5032b7eb3..8cb7abd55106 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 d1a2a2c71ebc..94b94765f21a 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 ae16ad7ecb36..6a0dd809f8dd 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 12fe30816b9f..a6afd1408607 100644 --- a/crm_phonecall/tests/test_crm_phonecall.py +++ b/crm_phonecall/tests/test_crm_phonecall.py @@ -13,65 +13,77 @@ 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", - "phone": "123 456 789", - "mobile": "123 456 789", - "type": "contact", - } + [ + { + "name": "Partner1", + "phone": "123 456 789", + "mobile": "123 456 789", + "type": "contact", + } + ] ) cls.partner2 = partner_obj.create( - {"name": "Partner2", "phone": "789 654 321", "mobile": "789 654 321"} + [{"name": "Partner2", "phone": "789 654 321", "mobile": "789 654 321"}] ) cls.phonecall1 = cls.env["crm.phonecall"].create( - { - "name": "Call #1 for test", - "partner_id": cls.partner1.id, - "campaign_id": cls.campaign1.id, - "source_id": cls.source1.id, - "medium_id": cls.medium1.id, - } + [ + { + "name": "Call #1 for test", + "partner_id": cls.partner1.id, + "campaign_id": cls.campaign1.id, + "source_id": cls.source1.id, + "medium_id": cls.medium1.id, + } + ] ) cls.phonecall2 = cls.env["crm.phonecall"].create( - { - "name": "Call #2 for test", - "partner_phone": "123 456 789", - "partner_mobile": "987 654 321", - "campaign_id": cls.campaign1.id, - "source_id": cls.source1.id, - "medium_id": cls.medium1.id, - } + [ + { + "name": "Call #2 for test", + "partner_phone": "123 456 789", + "partner_mobile": "987 654 321", + "campaign_id": cls.campaign1.id, + "source_id": cls.source1.id, + "medium_id": cls.medium1.id, + } + ] ) cls.opportunity1 = cls.env["crm.lead"].create( - { - "name": "Opportunity #1", - "phone": "111 111 111", - "mobile": "222 222 222", - "partner_id": cls.partner1.id, - } + [ + { + "name": "Opportunity #1", + "phone": "111 111 111", + "mobile": "222 222 222", + "partner_id": cls.partner1.id, + } + ] ) cls.opportunity2 = cls.env["crm.lead"].create( - { - "name": "Opportunity #2", - "phone": "222 222 222", - "mobile": "333 333 333", - "partner_id": cls.partner2.id, - } + [ + { + "name": "Opportunity #2", + "phone": "222 222 222", + "mobile": "333 333 333", + "partner_id": cls.partner2.id, + } + ] ) cls.tag = cls.env.ref("sales_team.categ_oppor1") def test_compute_phonecall_count_partner(self): partner = self.env["res.partner"].create( - {"name": "Partner3", "phone": "123 654 007", "mobile": "123 654 007"} + [{"name": "Partner3", "phone": "123 654 007", "mobile": "123 654 007"}] ) phonecall = self.env["crm.phonecall"].create( - { - "name": "Call #2 for test", - } + [ + { + "name": "Call #2 for test", + } + ] ) phonecall_form = Form(phonecall) phonecall_form.partner_id = partner @@ -80,14 +92,16 @@ def test_compute_phonecall_count_partner(self): def test_compute_duration(self): partner = self.env["res.partner"].create( - {"name": "Partner4", "phone": "123 456 007", "mobile": "123 456 007"} + [{"name": "Partner4", "phone": "123 456 007", "mobile": "123 456 007"}] ) phonecall = self.env["crm.phonecall"].create( - { - "name": "Call #3 for test", - "partner_id": partner.id, - "duration": 1, - } + [ + { + "name": "Call #3 for test", + "partner_id": partner.id, + "duration": 1, + } + ] ) phonecall.compute_duration() self.assertEqual(phonecall.duration, 0.0) @@ -168,7 +182,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 027b12d2e48b..e2ad86a9971e 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 c3393fff587d..ce53fc713d07 100644 --- a/crm_phonecall/views/res_partner_view.xml +++ b/crm_phonecall/views/res_partner_view.xml @@ -9,7 +9,7 @@