Skip to content

Commit 893c8db

Browse files
victoralmaucarlos-lopez-tecnativa
authored andcommitted
[MIG] github_connector_odoo: Migration to 17.0
TT51639
1 parent 2c176ef commit 893c8db

20 files changed

+134
-121
lines changed

github_connector_odoo/README.rst

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Github Connector - Odoo
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:3927fa22d4103a6017b69f601d113148d631556cbc6a4b4cf96f7ac28c1dc8dc
10+
!! source digest: sha256:04725d9223195564f0324b1845c0395271f93a92df2969fc07d414572db446ef
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -34,9 +34,9 @@ Connector' Module if your repositories contain Odoo Modules.
3434
It extends 'Analysis' features to parse code files (readme / manifest
3535
files) and add new models and menus.
3636

37-
|image|
37+
|menu|
3838

39-
.. |image| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/menu.png
39+
.. |menu| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/menu.png
4040

4141
**Table of contents**
4242

@@ -53,52 +53,52 @@ Configuration
5353
2. The URL of the file that contains IDs of your repositories for the
5454
runbot
5555

56-
|image|
56+
|github_organization_form|
5757

5858
If you had analyzed previously your repositories with the 'github
5959
Connector' module, you should launch again the Analysis Process for all
6060
your Repository Branches.
6161

62-
.. |image| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/github_organization_form.png
62+
.. |github_organization_form| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/github_organization_form.png
6363

6464
Usage
6565
=====
6666

6767
**Odoo Modules**
6868

69-
|image|
69+
|odoo_module_kanban|
7070

7171
In each module, you can see the description of the module, the authors,
7272
the available series, and the list of the modules that depend on the
7373
current module.
7474

75-
|image1|
75+
|odoo_module_form|
7676

7777
**Odoo Authors**
7878

79-
|image2|
79+
|odoo_author|
8080

8181
This list is based on the 'author' key of the manifest file.
8282

8383
**Odoo License**
8484

8585
This list is based on the 'license' key of the manifest file.
8686

87-
|image3|
87+
|odoo_license|
8888

8989
**Odoo Bin Libs**
9090

9191
This list is based on the 'external_dependencies' / 'bin' key of the
9292
manifest file.
9393

94-
|image4|
94+
|odoo_bin_libs|
9595

9696
**Odoo Python Libs**
9797

9898
This list is based on the 'external_dependencies' / 'python' key of the
9999
manifest file.
100100

101-
|image5|
101+
|odoo_python_libs|
102102

103103
**Analysis source code**
104104

@@ -121,15 +121,15 @@ This module provide a new reporting.
121121

122122
**Modules by Serie (and Licenses)**
123123

124-
|image6|
124+
|reporting_module_by_serie|
125125

126-
.. |image| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_module_kanban.png
127-
.. |image1| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_module_form.png
128-
.. |image2| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_author.png
129-
.. |image3| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_license.png
130-
.. |image4| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_bin_libs.png
131-
.. |image5| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_python_libs.png
132-
.. |image6| image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/reporting_module_by_serie.png
126+
.. |odoo_module_kanban| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_module_kanban.png
127+
.. |odoo_module_form| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_module_form.png
128+
.. |odoo_author| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_author.png
129+
.. |odoo_license| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_license.png
130+
.. |odoo_bin_libs| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_bin_libs.png
131+
.. |odoo_python_libs| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_python_libs.png
132+
.. |reporting_module_by_serie| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/reporting_module_by_serie.png
133133

134134
Known issues / Roadmap
135135
======================

github_connector_odoo/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
from . import monkeypatching
12
from . import models
23
from . import report

github_connector_odoo/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Github Connector - Odoo",
77
"summary": "Analyze Odoo modules information from Github repositories",
8-
"version": "16.0.1.1.1",
8+
"version": "17.0.1.0.0",
99
"category": "Connector",
1010
"license": "AGPL-3",
1111
"author": "Odoo Community Association (OCA), Sylvain LE GAL, GRAP",

github_connector_odoo/i18n/github_connector_odoo.pot

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 16.0\n"
7+
"Project-Id-Version: Odoo Server 17.0\n"
88
"Report-Msgid-Bugs-To: \n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"
@@ -117,7 +117,6 @@ msgstr ""
117117

118118
#. module: github_connector_odoo
119119
#: model:ir.actions.server,name:github_connector_odoo.cron_clean_odoo_module_version_ir_actions_server
120-
#: model:ir.cron,cron_name:github_connector_odoo.cron_clean_odoo_module_version
121120
msgid "Clean Odoo Module Version"
122121
msgstr ""
123122

@@ -329,20 +328,6 @@ msgstr ""
329328
msgid "Information"
330329
msgstr ""
331330

332-
#. module: github_connector_odoo
333-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_author____last_update
334-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_category____last_update
335-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_lib_bin____last_update
336-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_lib_python____last_update
337-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_license____last_update
338-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_manifest_key____last_update
339-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_module____last_update
340-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_module_version____last_update
341-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_module_version_rule_info____last_update
342-
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_module_version_rule_info_report____last_update
343-
msgid "Last Modified on"
344-
msgstr ""
345-
346331
#. module: github_connector_odoo
347332
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_author__write_uid
348333
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_category__write_uid

github_connector_odoo/models/odoo_module_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ def get_module_category(self, info):
420420
@api.model
421421
def manifest_2_odoo(self, info, repository_branch, module):
422422
author_list = (
423-
(type(info["author"]) == list)
423+
isinstance(info["author"], list)
424424
and info["author"]
425-
or (type(info["author"]) == tuple)
425+
or (isinstance(info["author"], tuple))
426426
and [x for x in info["author"]]
427427
or info["author"].split(",")
428428
)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2024 Tecnativa - Víctor Martínez
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
import odoo.release as release
5+
from odoo.modules import module
6+
7+
adapt_version_original = module.adapt_version
8+
9+
10+
def adapt_version(version):
11+
"""Overwrite the method to avoid the error if use values that do not contain serie
12+
(17.0), for example 4.0
13+
"""
14+
serie = release.major_version
15+
if version == serie or not version.startswith(serie + "."):
16+
return f"{serie}.{version}" # Similar to 16.0
17+
return adapt_version_original(version)
18+
19+
20+
# Monkey-patching of the method
21+
module.adapt_version = adapt_version

github_connector_odoo/readme/CONFIGURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
2. The URL of the file that contains IDs of your repositories for the
66
runbot
77

8-
![image](./static/description/github_organization_form.png)
8+
![github_organization_form](static/description/github_organization_form.png)
99

1010
If you had analyzed previously your repositories with the 'github
1111
Connector' module, you should launch again the Analysis Process for all

github_connector_odoo/readme/DESCRIPTION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Connector' Module if your repositories contain Odoo Modules.
44
It extends 'Analysis' features to parse code files (readme / manifest
55
files) and add new models and menus.
66

7-
![image](/github_connector_odoo/static/description/menu.png)
7+
![menu](static/description/menu.png)

github_connector_odoo/readme/USAGE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
**Odoo Modules**
22

3-
![image](/github_connector_odoo/static/description/odoo_module_kanban.png)
3+
![odoo_module_kanban](static/description/odoo_module_kanban.png)
44

55
In each module, you can see the description of the module, the authors,
66
the available series, and the list of the modules that depend on the
77
current module.
88

9-
![image](/github_connector_odoo/static/description/odoo_module_form.png)
9+
![odoo_module_form](static/description/odoo_module_form.png)
1010

1111
**Odoo Authors**
1212

13-
![image](/github_connector_odoo/static/description/odoo_author.png)
13+
![odoo_author](static/description/odoo_author.png)
1414

1515
This list is based on the 'author' key of the manifest file.
1616

1717
**Odoo License**
1818

1919
This list is based on the 'license' key of the manifest file.
2020

21-
![image](/github_connector_odoo/static/description/odoo_license.png)
21+
![odoo_license](static/description/odoo_license.png)
2222

2323
**Odoo Bin Libs**
2424

2525
This list is based on the 'external_dependencies' / 'bin' key of the
2626
manifest file.
2727

28-
![image](/github_connector_odoo/static/description/odoo_bin_libs.png)
28+
![odoo_bin_libs](static/description/odoo_bin_libs.png)
2929

3030
**Odoo Python Libs**
3131

3232
This list is based on the 'external_dependencies' / 'python' key of the
3333
manifest file.
3434

35-
![image](/github_connector_odoo/static/description/odoo_python_libs.png)
35+
![odoo_python_libs](static/description/odoo_python_libs.png)
3636

3737
**Analysis source code**
3838

@@ -55,4 +55,4 @@ This module provide a new reporting.
5555

5656
**Modules by Serie (and Licenses)**
5757

58-
![image](/github_connector_odoo/static/description/reporting_module_by_serie.png)
58+
![reporting_module_by_serie](static/description/reporting_module_by_serie.png)
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2-
access_odoo_author_reader,odoo_author reader,model_odoo_author,,1,0,0,0
2+
access_odoo_author_reader,odoo_author reader,model_odoo_author,base.group_user,1,0,0,0
33
access_odoo_author_manager,odoo_author manager,model_odoo_author,github_connector.group_github_connector_manager,1,1,1,1
4-
access_odoo_lib_bin_reader,odoo_lib_bin reader,model_odoo_lib_bin,,1,0,0,0
4+
access_odoo_lib_bin_reader,odoo_lib_bin reader,model_odoo_lib_bin,base.group_user,1,0,0,0
55
access_odoo_lib_bin_manager,odoo_lib_bin manager,model_odoo_lib_bin,github_connector.group_github_connector_manager,1,1,1,1
6-
access_odoo_lib_python_reader,odoo_lib_python reader,model_odoo_lib_python,,1,0,0,0
6+
access_odoo_lib_python_reader,odoo_lib_python reader,model_odoo_lib_python,base.group_user,1,0,0,0
77
access_odoo_lib_python_manager,odoo_lib_python manager,model_odoo_lib_python,github_connector.group_github_connector_manager,1,1,1,1
8-
access_odoo_license_reader,odoo_license reader,model_odoo_license,,1,0,0,0
8+
access_odoo_license_reader,odoo_license reader,model_odoo_license,base.group_user,1,0,0,0
99
access_odoo_license_manager,odoo_license manager,model_odoo_license,github_connector.group_github_connector_manager,1,1,1,1
10-
access_odoo_module_reader,odoo_module reader,model_odoo_module,,1,0,0,0
10+
access_odoo_module_reader,odoo_module reader,model_odoo_module,base.group_user,1,0,0,0
1111
access_odoo_module_manager,odoo_module manager,model_odoo_module,github_connector.group_github_connector_manager,1,1,1,1
12-
access_odoo_module_version_reader,odoo_module_version reader,model_odoo_module_version,,1,0,0,0
12+
access_odoo_module_version_reader,odoo_module_version reader,model_odoo_module_version,base.group_user,1,0,0,0
1313
access_odoo_module_version_manager,odoo_module_version manager,model_odoo_module_version,github_connector.group_github_connector_manager,1,1,1,1
1414
access_odoo_module_version_rule_info_reader,access_odoo_module_version_rule_info_reader,model_odoo_module_version_rule_info,base.group_user,1,0,0,0
1515
access_odoo_module_version_rule_info_manager,access_odoo_module_version_rule_info_manager,model_odoo_module_version_rule_info,github_connector.group_github_connector_manager,1,1,1,1
16-
access_odoo_module_version_rule_info_report_reader,odoo_module_version_rule_info_report reader,model_odoo_module_version_rule_info_report,,1,0,0,0
17-
access_odoo_category_reader,odoo_category reader,model_odoo_category,,1,0,0,0
16+
access_odoo_module_version_rule_info_report_reader,odoo_module_version_rule_info_report reader,model_odoo_module_version_rule_info_report,base.group_user,1,0,0,0
17+
access_odoo_category_reader,odoo_category reader,model_odoo_category,base.group_user,1,0,0,0
1818
access_odoo_category_manager,odoo_category manager,model_odoo_category,github_connector.group_github_connector_manager,1,1,1,1
19-
access_odoo_manifest_key_reader,odoo_manifest_key reader,model_odoo_manifest_key,,1,0,0,0
19+
access_odoo_manifest_key_reader,odoo_manifest_key reader,model_odoo_manifest_key,base.group_user,1,0,0,0
2020
access_odoo_manifest_key_manager,odoo_manifest_key manager,model_odoo_manifest_key,github_connector.group_github_connector_manager,1,1,1,1

0 commit comments

Comments
 (0)