Skip to content

Commit 92dcfa5

Browse files
[MIG] github_connector_odoo: Migration to 16.0
1 parent 26aa9e3 commit 92dcfa5

File tree

6 files changed

+33
-19
lines changed

6 files changed

+33
-19
lines changed

github_connector_odoo/README.rst

Lines changed: 8 additions & 7 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:4648c8663cb4be793974b8e2b5e3beab6323fe15979c701b02020c6c502b300b
10+
!! source digest: sha256:cc1a7ff52de1c7c111c6f139810de7d928ec8e6c580e2707d1b58961f7bb7266
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Github Connector - Odoo
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Finterface--github-lightgray.png?logo=github
20-
:target: https://github.com/OCA/interface-github/tree/15.0/github_connector_odoo
20+
:target: https://github.com/OCA/interface-github/tree/16.0/github_connector_odoo
2121
:alt: OCA/interface-github
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/interface-github-15-0/interface-github-15-0-github_connector_odoo
23+
:target: https://translation.odoo-community.org/projects/interface-github-16-0/interface-github-16-0-github_connector_odoo
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/interface-github&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/interface-github&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -50,7 +50,7 @@ Configuration
5050
modules (in the **Default Author Text** field)
5151
2. The URL of the file that contains IDs of your repositories for the runbot
5252

53-
.. image:: https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector_odoo/static/description/github_organization_form.png
53+
.. image:: https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector_odoo/static/description/github_organization_form.png
5454

5555
If you had analyzed previously your repositories with the
5656
'github Connector' module, you should launch again the Analysis Process
@@ -144,7 +144,7 @@ Bug Tracker
144144
Bugs are tracked on `GitHub Issues <https://github.com/OCA/interface-github/issues>`_.
145145
In case of trouble, please check there if your issue has already been reported.
146146
If you spotted it first, help us to smash it by providing a detailed and welcomed
147-
`feedback <https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector_odoo%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
147+
`feedback <https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector_odoo%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
148148

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

@@ -168,6 +168,7 @@ Contributors
168168
* Pedro M. Baeza
169169
* Ernesto Tejeda
170170
* Víctor Martínez
171+
* Carolina Fernandez
171172

172173
Maintainers
173174
~~~~~~~~~~~
@@ -182,6 +183,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
182183
mission is to support the collaborative development of Odoo features and
183184
promote its widespread use.
184185

185-
This module is part of the `OCA/interface-github <https://github.com/OCA/interface-github/tree/15.0/github_connector_odoo>`_ project on GitHub.
186+
This module is part of the `OCA/interface-github <https://github.com/OCA/interface-github/tree/16.0/github_connector_odoo>`_ project on GitHub.
186187

187188
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

github_connector_odoo/__manifest__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Copyright (C) 2016-Today: Odoo Community Association (OCA)
22
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
3+
# Copyright 2024 Tecnativa - Carolina Fernandez
34
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
45
{
56
"name": "Github Connector - Odoo",
67
"summary": "Analyze Odoo modules information from Github repositories",
7-
"version": "15.0.2.0.1",
8+
"version": "16.0.1.0.0",
89
"category": "Connector",
910
"license": "AGPL-3",
1011
"author": "Odoo Community Association (OCA), Sylvain LE GAL, GRAP",

github_connector_odoo/models/github_repository_branch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88

99
from odoo import api, fields, models
10-
from odoo.modules import load_information_from_description_file
10+
from odoo.modules.module import load_information_from_description_file
1111

1212
# Hard define this value to make this module working with or without
1313
# the patch (that backports V10 manifests analysis code.

github_connector_odoo/models/odoo_module_version.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,22 @@ def _compute_lib(self):
327327
for version in self:
328328
python_libs = []
329329
bin_libs = []
330-
my_eval = {}
330+
my_eval = []
331331
if version.external_dependencies:
332332
my_eval = safe_eval(version.external_dependencies)
333-
for python_name in my_eval.get("python", []):
334-
python_libs.append(lib_python_obj.create_if_not_exist(python_name))
335-
for bin_name in my_eval.get("bin", []):
336-
bin_libs.append(lib_bin_obj.create_if_not_exist(bin_name))
333+
if isinstance(my_eval, list):
334+
for item in my_eval:
335+
if isinstance(item, dict):
336+
python_names = item.get("python", [])
337+
bin_names = item.get("bin", [])
338+
for python_name in python_names:
339+
python_libs.append(
340+
lib_python_obj.create_if_not_exist(python_name)
341+
)
342+
for bin_name in bin_names:
343+
bin_libs.append(
344+
lib_bin_obj.create_if_not_exist(bin_name)
345+
)
337346

338347
version.lib_python_ids = [x.id for x in python_libs]
339348
version.lib_python_ids_description = ", ".join(

github_connector_odoo/readme/CONTRIBUTORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
* Pedro M. Baeza
77
* Ernesto Tejeda
88
* Víctor Martínez
9+
* Carolina Fernandez

github_connector_odoo/static/description/index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
23
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
34
<head>
@@ -366,9 +367,9 @@ <h1 class="title">Github Connector - Odoo</h1>
366367
!! This file is generated by oca-gen-addon-readme !!
367368
!! changes will be overwritten. !!
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369-
!! source digest: sha256:4648c8663cb4be793974b8e2b5e3beab6323fe15979c701b02020c6c502b300b
370+
!! source digest: sha256:cc1a7ff52de1c7c111c6f139810de7d928ec8e6c580e2707d1b58961f7bb7266
370371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/interface-github/tree/15.0/github_connector_odoo"><img alt="OCA/interface-github" src="https://img.shields.io/badge/github-OCA%2Finterface--github-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/interface-github-15-0/interface-github-15-0-github_connector_odoo"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/interface-github&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/interface-github/tree/16.0/github_connector_odoo"><img alt="OCA/interface-github" src="https://img.shields.io/badge/github-OCA%2Finterface--github-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/interface-github-16-0/interface-github-16-0-github_connector_odoo"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/interface-github&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372373
<p>This module was written to extend the functionality of ‘Github Connector’
373374
Module if your repositories contain Odoo Modules.</p>
374375
<p>It extends ‘Analysis’ features to parse code files (readme / manifest files)
@@ -399,7 +400,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
399400
modules (in the <strong>Default Author Text</strong> field)</li>
400401
<li>The URL of the file that contains IDs of your repositories for the runbot</li>
401402
</ol>
402-
<img alt="https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector_odoo/static/description/github_organization_form.png" src="https://raw.githubusercontent.com/OCA/interface-github/15.0/github_connector_odoo/static/description/github_organization_form.png" />
403+
<img alt="https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector_odoo/static/description/github_organization_form.png" src="https://raw.githubusercontent.com/OCA/interface-github/16.0/github_connector_odoo/static/description/github_organization_form.png" />
403404
<p>If you had analyzed previously your repositories with the
404405
‘github Connector’ module, you should launch again the Analysis Process
405406
for all your Repository Branches.</p>
@@ -453,7 +454,7 @@ <h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
453454
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/interface-github/issues">GitHub Issues</a>.
454455
In case of trouble, please check there if your issue has already been reported.
455456
If you spotted it first, help us to smash it by providing a detailed and welcomed
456-
<a class="reference external" href="https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector_odoo%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
457+
<a class="reference external" href="https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector_odoo%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
457458
<p>Do not contact contributors directly about support or help with technical issues.</p>
458459
</div>
459460
<div class="section" id="credits">
@@ -475,6 +476,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
475476
<li>Pedro M. Baeza</li>
476477
<li>Ernesto Tejeda</li>
477478
<li>Víctor Martínez</li>
479+
<li>Carolina Fernandez</li>
478480
</ul>
479481
</li>
480482
</ul>
@@ -486,7 +488,7 @@ <h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
486488
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
487489
mission is to support the collaborative development of Odoo features and
488490
promote its widespread use.</p>
489-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/interface-github/tree/15.0/github_connector_odoo">OCA/interface-github</a> project on GitHub.</p>
491+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/interface-github/tree/16.0/github_connector_odoo">OCA/interface-github</a> project on GitHub.</p>
490492
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
491493
</div>
492494
</div>

0 commit comments

Comments
 (0)