From cc0e48ee0a70c30eac37ba10f438410a6f76aa1b Mon Sep 17 00:00:00 2001
From: Bhavesh Heliconia
Date: Wed, 8 Jan 2025 11:04:58 +0530
Subject: [PATCH] [MIG] crm_operating_unit: Migration to 18.0
---
crm_operating_unit/README.rst | 31 ++++++++++---------
crm_operating_unit/__manifest__.py | 2 +-
crm_operating_unit/readme/CONTRIBUTORS.md | 1 +
.../static/description/index.html | 7 +++--
.../tests/test_crm_operating_unit.py | 7 ++++-
5 files changed, 28 insertions(+), 20 deletions(-)
diff --git a/crm_operating_unit/README.rst b/crm_operating_unit/README.rst
index c3276a8533..de7cb29504 100644
--- a/crm_operating_unit/README.rst
+++ b/crm_operating_unit/README.rst
@@ -17,25 +17,25 @@ Operating Unit in CRM
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Foperating--unit-lightgray.png?logo=github
- :target: https://github.com/OCA/operating-unit/tree/17.0/crm_operating_unit
+ :target: https://github.com/OCA/operating-unit/tree/18.0/crm_operating_unit
:alt: OCA/operating-unit
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/operating-unit-17-0/operating-unit-17-0-crm_operating_unit
+ :target: https://translation.odoo-community.org/projects/operating-unit-18-0/operating-unit-18-0-crm_operating_unit
: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/operating-unit&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/operating-unit&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
This module introduces the following features:
-- Adds the Operating Unit (OU) to the Lead.
-- The user’s default Operating Unit (OU) is proposed at the time of
- creating the Lead / Opportunity.
-- Security rules are defined to ensure that users can only see the
- Opportunity / Lead of that Operating Units in which they are allowed
- access to.
+- Adds the Operating Unit (OU) to the Lead.
+- The user’s default Operating Unit (OU) is proposed at the time of
+ creating the Lead / Opportunity.
+- Security rules are defined to ensure that users can only see the
+ Opportunity / Lead of that Operating Units in which they are allowed
+ access to.
**Table of contents**
@@ -53,7 +53,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.
@@ -69,10 +69,11 @@ Authors
Contributors
------------
-- ForgeFlow S.L.
-- Serpent Consulting Services Pvt. Ltd.
-- Jarsa Sistemas, S.A. de C.V.
-- Tran Thanh Trai
+- ForgeFlow S.L.
+- Serpent Consulting Services Pvt. Ltd.
+- Jarsa Sistemas, S.A. de C.V.
+- Tran Thanh Trai
+- ``Heliconia Solutions Pvt. Ltd. ``\ \_
Maintainers
-----------
@@ -87,6 +88,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/operating-unit `_ project on GitHub.
+This module is part of the `OCA/operating-unit `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/crm_operating_unit/__manifest__.py b/crm_operating_unit/__manifest__.py
index 054556cb72..abdbda19d3 100644
--- a/crm_operating_unit/__manifest__.py
+++ b/crm_operating_unit/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "Operating Unit in CRM",
- "version": "17.0.1.0.0",
+ "version": "18.0.1.0.0",
"author": "ForgeFlow, "
"Serpent Consulting Services Pvt. Ltd.,"
"Odoo Community Association (OCA)",
diff --git a/crm_operating_unit/readme/CONTRIBUTORS.md b/crm_operating_unit/readme/CONTRIBUTORS.md
index 69aaf4d3b5..3e1c24a5b8 100644
--- a/crm_operating_unit/readme/CONTRIBUTORS.md
+++ b/crm_operating_unit/readme/CONTRIBUTORS.md
@@ -2,3 +2,4 @@
- Serpent Consulting Services Pvt. Ltd. \<\>
- Jarsa Sistemas, S.A. de C.V. \<\>
- Tran Thanh Trai \<\>
+- `Heliconia Solutions Pvt. Ltd. `_
diff --git a/crm_operating_unit/static/description/index.html b/crm_operating_unit/static/description/index.html
index 2618a377b9..008fb8f985 100644
--- a/crm_operating_unit/static/description/index.html
+++ b/crm_operating_unit/static/description/index.html
@@ -369,7 +369,7 @@ Operating Unit in CRM
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ca685de8eca27c0e29b354e97f4d815724f7d989392ae6182aeae2402ff81329
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module introduces the following features:
- Adds the Operating Unit (OU) to the Lead.
@@ -400,7 +400,7 @@
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.
@@ -430,7 +431,7 @@
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/operating-unit project on GitHub.
+
This module is part of the OCA/operating-unit project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/crm_operating_unit/tests/test_crm_operating_unit.py b/crm_operating_unit/tests/test_crm_operating_unit.py
index 7143386ed5..905e84f746 100644
--- a/crm_operating_unit/tests/test_crm_operating_unit.py
+++ b/crm_operating_unit/tests/test_crm_operating_unit.py
@@ -57,7 +57,12 @@ def _create_crm_team(self, uid, operating_unit):
crm = self.crm_team_model.with_context(
mail_create_nosubscribe=True, mail_create_nolog=True
).create(
- {"name": "CRM team", "operating_unit_id": operating_unit.id, "user_id": uid}
+ {
+ "name": "CRM team",
+ "operating_unit_id": operating_unit.id,
+ "user_id": uid,
+ "company_id": operating_unit.company_id.id,
+ }
)
return crm