From 18a08c71896554de045a244b9394bac76aafb7ac Mon Sep 17 00:00:00 2001
From: Bhavesh Heliconia
Date: Mon, 23 Dec 2024 17:58:42 +0530
Subject: [PATCH] [MIG] mail_multicompany: Migration to 18.0
---
mail_multicompany/README.rst | 23 ++++++++++---------
mail_multicompany/__manifest__.py | 2 +-
.../migrations/17.0.1.0.0/pre-migration.py | 13 -----------
mail_multicompany/readme/CONTRIBUTORS.md | 1 +
.../static/description/index.html | 18 +++++++++------
5 files changed, 25 insertions(+), 32 deletions(-)
delete mode 100644 mail_multicompany/migrations/17.0.1.0.0/pre-migration.py
diff --git a/mail_multicompany/README.rst b/mail_multicompany/README.rst
index 12e6758f0ef..10ec719cb11 100644
--- a/mail_multicompany/README.rst
+++ b/mail_multicompany/README.rst
@@ -17,13 +17,13 @@ Email Gateway Multi company
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmulti--company-lightgray.png?logo=github
- :target: https://github.com/OCA/multi-company/tree/17.0/mail_multicompany
+ :target: https://github.com/OCA/multi-company/tree/18.0/mail_multicompany
:alt: OCA/multi-company
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/multi-company-17-0/multi-company-17-0-mail_multicompany
+ :target: https://translation.odoo-community.org/projects/multi-company-18-0/multi-company-18-0-mail_multicompany
: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/multi-company&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/multi-company&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -40,15 +40,15 @@ company mail_server.
Configuration
=============
-- Go to 'Settings / Technical / Outgoing Mail Servers', and add the
- company.
+- Go to 'Settings / Technical / Outgoing Mail Servers', and add the
+ company.
Usage
=====
To use this module, you need to:
-- Send some email or message that comes out of Odoo.
+- Send some email or message that comes out of Odoo.
Bug Tracker
===========
@@ -56,7 +56,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.
@@ -71,9 +71,10 @@ Authors
Contributors
------------
-- Jesús Ventosinos Mayor
-- Cédric Pigeon
-- Valentin Vinagre
+- Jesús Ventosinos Mayor
+- Cédric Pigeon
+- Valentin Vinagre
+- ``Heliconia Solutions Pvt. Ltd. ``\ \_
Maintainers
-----------
@@ -96,6 +97,6 @@ Current `maintainer `__:
|maintainer-luisg123v|
-This module is part of the `OCA/multi-company `_ project on GitHub.
+This module is part of the `OCA/multi-company `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/mail_multicompany/__manifest__.py b/mail_multicompany/__manifest__.py
index 9c6f106c163..91eab542fbd 100644
--- a/mail_multicompany/__manifest__.py
+++ b/mail_multicompany/__manifest__.py
@@ -1,7 +1,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Email Gateway Multi company",
- "version": "17.0.1.0.0",
+ "version": "18.0.1.0.0",
"category": "Extra Tools",
"author": "Odoo Community Association (OCA), " "Comunitea",
"maintainers": [
diff --git a/mail_multicompany/migrations/17.0.1.0.0/pre-migration.py b/mail_multicompany/migrations/17.0.1.0.0/pre-migration.py
deleted file mode 100644
index f02c45ec4ed..00000000000
--- a/mail_multicompany/migrations/17.0.1.0.0/pre-migration.py
+++ /dev/null
@@ -1,13 +0,0 @@
-# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-
-from odoo import SUPERUSER_ID, api
-from odoo.tools.sql import column_exists, rename_column
-
-
-def migrate(cr, version):
- env = api.Environment(cr, SUPERUSER_ID, {})
- models = [env["mail.message"]]
- for model in models:
- table_name = model._table
- if column_exists(cr, table_name, "company_id"):
- rename_column(cr, table_name, "company_id", "record_company_id")
diff --git a/mail_multicompany/readme/CONTRIBUTORS.md b/mail_multicompany/readme/CONTRIBUTORS.md
index 628508940e1..797b1669957 100644
--- a/mail_multicompany/readme/CONTRIBUTORS.md
+++ b/mail_multicompany/readme/CONTRIBUTORS.md
@@ -1,3 +1,4 @@
- Jesús Ventosinos Mayor \<\>
- Cédric Pigeon \<\>
- Valentin Vinagre \<\>
+- `Heliconia Solutions Pvt. Ltd. `_
diff --git a/mail_multicompany/static/description/index.html b/mail_multicompany/static/description/index.html
index 999c6cdcd68..9562183cbf2 100644
--- a/mail_multicompany/static/description/index.html
+++ b/mail_multicompany/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
+:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
+Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: grey; } /* line numbers */
+pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,7 +369,7 @@ Email Gateway Multi company
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a384d2ea5c0cbcba2a09921be67c9950825e310b373fe1bcb6fe6e2a33441023
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module adds company_id to the models ir.mail_server and
mail.message. Also inherits mail.message create function to set the
company mail_server.
@@ -405,7 +406,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.
This module is maintained by the OCA.
-

+
+
+
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:

-
This module is part of the OCA/multi-company project on GitHub.
+
This module is part of the OCA/multi-company project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.