diff --git a/crm_lead_mobile/README.rst b/crm_lead_mobile/README.rst new file mode 100644 index 00000000000..8d0d53f5b36 --- /dev/null +++ b/crm_lead_mobile/README.rst @@ -0,0 +1,99 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +=============== +CRM Lead Mobile +=============== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:223cd732059db2f32192d69f15104d6017d3085fd183658057893d17cf6f255c + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :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/16.0/crm_lead_mobile + :alt: OCA/crm +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_lead_mobile + :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=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module shows the *Mobile* field of the opportunity next to the phone, on +the opportunity form and on the kanban quick create form. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +#. Go to *CRM > Sales > My Pipeline*. +#. Create an opportunity with the kanban quick create or open one in the form. +#. Fill the *Mobile* field. When a contact is selected, Odoo fills it with the + contact's mobile. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Escodoo + +Contributors +~~~~~~~~~~~~ + +* `Escodoo `_: + + * Wesley Oliveira + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +.. |maintainer-WesleyOliveira98| image:: https://github.com/WesleyOliveira98.png?size=40px + :target: https://github.com/WesleyOliveira98 + :alt: WesleyOliveira98 + +Current `maintainer `__: + +|maintainer-WesleyOliveira98| + +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_lead_mobile/__init__.py b/crm_lead_mobile/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/crm_lead_mobile/__manifest__.py b/crm_lead_mobile/__manifest__.py new file mode 100644 index 00000000000..29663177c5a --- /dev/null +++ b/crm_lead_mobile/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2026 - TODAY, Escodoo +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "CRM Lead Mobile", + "summary": "Show the mobile field on the opportunity forms", + "version": "16.0.1.0.0", + "category": "Customer Relationship Management", + "license": "AGPL-3", + "author": "Escodoo, Odoo Community Association (OCA)", + "maintainers": ["WesleyOliveira98"], + "website": "https://github.com/OCA/crm", + "depends": ["crm"], + "data": [ + "views/crm_lead_views.xml", + ], +} diff --git a/crm_lead_mobile/readme/CONTRIBUTORS.rst b/crm_lead_mobile/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..2f9bd6d0266 --- /dev/null +++ b/crm_lead_mobile/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Escodoo `_: + + * Wesley Oliveira diff --git a/crm_lead_mobile/readme/DESCRIPTION.rst b/crm_lead_mobile/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..52c77ca7999 --- /dev/null +++ b/crm_lead_mobile/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module shows the *Mobile* field of the opportunity next to the phone, on +the opportunity form and on the kanban quick create form. diff --git a/crm_lead_mobile/readme/USAGE.rst b/crm_lead_mobile/readme/USAGE.rst new file mode 100644 index 00000000000..f6610ab23c3 --- /dev/null +++ b/crm_lead_mobile/readme/USAGE.rst @@ -0,0 +1,4 @@ +#. Go to *CRM > Sales > My Pipeline*. +#. Create an opportunity with the kanban quick create or open one in the form. +#. Fill the *Mobile* field. When a contact is selected, Odoo fills it with the + contact's mobile. diff --git a/crm_lead_mobile/static/description/icon.png b/crm_lead_mobile/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/crm_lead_mobile/static/description/icon.png differ diff --git a/crm_lead_mobile/static/description/index.html b/crm_lead_mobile/static/description/index.html new file mode 100644 index 00000000000..3fc2c0556db --- /dev/null +++ b/crm_lead_mobile/static/description/index.html @@ -0,0 +1,445 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

CRM Lead Mobile

+ +

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

+

This module shows the Mobile field of the opportunity next to the phone, on +the opportunity form and on the kanban quick create form.

+

Table of contents

+ +
+

Usage

+
    +
  1. Go to CRM > Sales > My Pipeline.
  2. +
  3. Create an opportunity with the kanban quick create or open one in the form.
  4. +
  5. Fill the Mobile field. When a contact is selected, Odoo fills it with the +contact’s mobile.
  6. +
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Escodoo
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

WesleyOliveira98

+

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_lead_mobile/tests/__init__.py b/crm_lead_mobile/tests/__init__.py new file mode 100644 index 00000000000..4fbd9227cc8 --- /dev/null +++ b/crm_lead_mobile/tests/__init__.py @@ -0,0 +1 @@ +from . import test_crm_lead_mobile diff --git a/crm_lead_mobile/tests/test_crm_lead_mobile.py b/crm_lead_mobile/tests/test_crm_lead_mobile.py new file mode 100644 index 00000000000..6ec78bcac0a --- /dev/null +++ b/crm_lead_mobile/tests/test_crm_lead_mobile.py @@ -0,0 +1,32 @@ +# Copyright 2026 - TODAY, Wesley Oliveira +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo.tests.common import Form, TransactionCase + + +class TestCrmLeadMobile(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.partner = cls.env["res.partner"].create( + {"name": "Test Partner", "mobile": "+55 11 99999-0001"} + ) + + def _test_form(self, view): + form = Form( + self.env["crm.lead"].with_context(default_type="opportunity"), + view=view, + ) + form.name = "Test Opportunity" + form.partner_id = self.partner + self.assertEqual(form.mobile, "+55 11 99999-0001") + form.mobile = "+55 21 98888-7777" + lead = form.save() + self.assertEqual(lead.mobile, "+55 21 98888-7777") + self.assertEqual(self.partner.mobile, "+55 11 99999-0001") + + def test_opportunity_form(self): + self._test_form("crm.crm_lead_view_form") + + def test_quick_create_form(self): + self._test_form("crm.quick_create_opportunity_form") diff --git a/crm_lead_mobile/views/crm_lead_views.xml b/crm_lead_mobile/views/crm_lead_views.xml new file mode 100644 index 00000000000..d9da92d9a75 --- /dev/null +++ b/crm_lead_mobile/views/crm_lead_views.xml @@ -0,0 +1,28 @@ + + + + + + crm.lead.form (in crm_lead_mobile) + crm.lead + + + + + + + + + + crm.lead.form.quick_create (in crm_lead_mobile) + crm.lead + + + + + + + + + diff --git a/setup/crm_lead_mobile/odoo/addons/crm_lead_mobile b/setup/crm_lead_mobile/odoo/addons/crm_lead_mobile new file mode 120000 index 00000000000..944deee47c4 --- /dev/null +++ b/setup/crm_lead_mobile/odoo/addons/crm_lead_mobile @@ -0,0 +1 @@ +../../../../crm_lead_mobile \ No newline at end of file diff --git a/setup/crm_lead_mobile/setup.py b/setup/crm_lead_mobile/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/crm_lead_mobile/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)