Skip to content
Snippets Groups Projects
Commit edad20ec authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

Migration to Odoo 17

parent 9a6bd44d
No related branches found
No related tags found
No related merge requests found
Pipeline #102355 passed
[flake8]
max-line-length = 88
per-file-ignores=
__init__.py:F401
__manifest__.py:B018
include: include:
- project: xcg/ci-templates - project: xcg/ci-templates
file: /odoo/15.0/gitlab-ci.yaml file: /odoo/17.0/gitlab-ci.yaml
variables:
CI_TEMPLATE_NO_INSTALL_MODULE: ""
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
Changelog Changelog
========= =========
15.0.1.0.0 17.0.1.0.0
---------- ----------
...@@ -6,4 +6,3 @@ ...@@ -6,4 +6,3 @@
---------- ----------
Port to Odoo 15 Port to Odoo 17.
...@@ -2,18 +2,9 @@ ...@@ -2,18 +2,9 @@
Messaging Group Messaging Group
=============== ===============
.. |pipeline| image:: https://orus.io/xcg/odoo-modules/mail_messaging_group/badges/branch/15.0/pipeline.svg
:target: https://orus.io/xcg/odoo-modules/mail_messaging_group/commits/branch/15.0
:alt: pipeline status
.. |coverage| image:: https://orus.io/xcg/odoo-modules/mail_messaging_group/badges/branch/15.0/coverage.svg
:target: https://orus.io/xcg/odoo-modules/mail_messaging_group/commits/branch/15.0
:alt: Coverage report
.. |pylint| image:: .badges/pylint.svg
:target: https://orus.io/xcg/odoo-modules/mail_messaging_group/-/pipelines?ref=branch/15.0
:alt: pylint score
.. |maturity| image:: .badges/maturity.svg .. |maturity| image:: .badges/maturity.svg
:target: https://odoo-community.org/page/development-status :target: https://odoo-community.org/page/development-status
:alt: Stable :alt: Stable
.. |license| image:: .badges/licence-AGPL--3-blue.svg .. |license| image:: .badges/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
...@@ -14,13 +5,13 @@ ...@@ -14,13 +5,13 @@
.. |maturity| image:: .badges/maturity.svg .. |maturity| image:: .badges/maturity.svg
:target: https://odoo-community.org/page/development-status :target: https://odoo-community.org/page/development-status
:alt: Stable :alt: Stable
.. |license| image:: .badges/licence-AGPL--3-blue.svg .. |license| image:: .badges/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |black| image:: .badges/code_style-black-000000.svg .. |ruff| image:: .badges/code_style-ruff.svg
:target: https://github.com/psf/black :target: https://github.com/astral-sh/ruff
:alt: Black :alt: Ruff
.. |prettier| image:: .badges/code_style-prettier-ff69b4.svg .. |prettier| image:: .badges/code_style-prettier-ff69b4.svg
:target: https://github.com/prettier/prettier :target: https://github.com/prettier/prettier
:alt: Prettier :alt: Prettier
...@@ -23,8 +14,8 @@ ...@@ -23,8 +14,8 @@
.. |prettier| image:: .badges/code_style-prettier-ff69b4.svg .. |prettier| image:: .badges/code_style-prettier-ff69b4.svg
:target: https://github.com/prettier/prettier :target: https://github.com/prettier/prettier
:alt: Prettier :alt: Prettier
|pipeline| |coverage| |pylint| |maturity| |license| |black| |prettier| |maturity| |license| |ruff| |prettier|
Introduce a new group, messaging, and only member of this group can see the messaging menu. Introduce a new group, messaging, and only member of this group can see the messaging menu.
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"name": "Messaging Group", "name": "Messaging Group",
"license": "AGPL-3", "license": "AGPL-3",
"summary": "New group to access discussions", "summary": "New group to access discussions",
"version": "15.0.1.0.0", "version": "17.0.1.0.0",
"category": "Extra Rights", "category": "Extra Rights",
"author": "XCG Consulting", "author": "XCG Consulting",
"website": "https://orbeet.io/", "website": "https://orbeet.io/",
......
...@@ -13,6 +13,6 @@ ...@@ -13,6 +13,6 @@
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Framework :: Odoo", "Framework :: Odoo",
"Framework :: Odoo :: 15.0", "Framework :: Odoo :: 17.0",
"License :: OSI Approved :: GNU Affero General Public License v3" "License :: OSI Approved :: GNU Affero General Public License v3"
] ]
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
"License :: OSI Approved :: GNU Affero General Public License v3" "License :: OSI Approved :: GNU Affero General Public License v3"
] ]
dependencies = ["odoo==15.0.*"] dependencies = ["odoo==17.0.*"]
[project.optional-dependencies] [project.optional-dependencies]
doc = ["sphinx", "sphinx-odoo-autodoc", "odoo-scripts"] doc = ["sphinx", "sphinx-odoo-autodoc", "odoo-scripts"]
test = [] test = []
[project.urls] [project.urls]
...@@ -20,10 +20,9 @@ ...@@ -20,10 +20,9 @@
[project.optional-dependencies] [project.optional-dependencies]
doc = ["sphinx", "sphinx-odoo-autodoc", "odoo-scripts"] doc = ["sphinx", "sphinx-odoo-autodoc", "odoo-scripts"]
test = [] test = []
[project.urls] [project.urls]
# TEMPLATE When using this template, update these values
repository = "https://orus.io/xcg/odoo-modules/mail_messaging_group" repository = "https://orus.io/xcg/odoo-modules/mail_messaging_group"
changelog = "https://orus.io/xcg/odoo-modules/mail_messaging_group/-/blob/branch/15.0/NEWS.rst" changelog = "https://orus.io/xcg/odoo-modules/mail_messaging_group/-/blob/branch/15.0/NEWS.rst"
...@@ -36,7 +35,6 @@ ...@@ -36,7 +35,6 @@
"/doc/", "/doc/",
"/.editorconfig", "/.editorconfig",
"/.eslintrc.yml", "/.eslintrc.yml",
"/.flake8",
"/.gitlab-ci.yml", "/.gitlab-ci.yml",
"/.hgignore", "/.hgignore",
"/.hgtags", "/.hgtags",
...@@ -62,7 +60,18 @@ ...@@ -62,7 +60,18 @@
[tool.hatch.version] [tool.hatch.version]
source = "vcs" source = "vcs"
[tool.black] [tool.isort]
target-version = ["py39", "py310", "py311"] section-order = [
required-version = "22" "future",
"standard-library",
"third-party",
"odoo",
"odoo-addons",
"first-party",
"local-folder"
]
[tool.isort.sections]
"odoo" = ["odoo"]
"odoo-addons" = ["odoo.addons"]
...@@ -68,15 +77,16 @@ ...@@ -68,15 +77,16 @@
[tool.isort] [tool.ruff.lint.mccabe]
py_version = 39 max-complexity = 16
profile = "black"
known_odoo = ['odoo'] [tool.ruff]
known_odoo_addons = ['odoo.addons'] target-version = "py311"
sections = [
'FUTURE', [tool.ruff.lint]
'STDLIB', extend-select = [
'THIRDPARTY', "B",
'ODOO', "C90",
'ODOO_ADDONS', "E501", # line too long (default 88)
'FIRSTPARTY', "I", # isort
'LOCALFOLDER' "UP", # pyupgrade
] ]
...@@ -82,1 +92,5 @@ ...@@ -82,1 +92,5 @@
] ]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
"__manifest__.py" = ["B018"] # useless expression
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment