Skip to content

Commit 0662862

Browse files
[MIG] github_connector_odoo: Migration to version 18.0
1 parent 92515c4 commit 0662862

23 files changed

+128
-183
lines changed

github_connector_odoo/README.rst

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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/17.0/github_connector_odoo
20+
:target: https://github.com/OCA/interface-github/tree/18.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-17-0/interface-github-17-0-github_connector_odoo
23+
:target: https://translation.odoo-community.org/projects/interface-github-18-0/interface-github-18-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=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/interface-github&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -36,7 +36,7 @@ files) and add new models and menus.
3636

3737
|menu|
3838

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

4141
**Table of contents**
4242

@@ -46,7 +46,7 @@ files) and add new models and menus.
4646
Configuration
4747
=============
4848

49-
- Once installed, go to your organization, and set extra settings:
49+
- Once installed, go to your organization, and set extra settings:
5050

5151
1. The name of your organization in the author keys of the manifest odoo
5252
modules (in the **Default Author Text** field)
@@ -59,7 +59,7 @@ 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-
.. |github_organization_form| 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/18.0/github_connector_odoo/static/description/github_organization_form.png
6363

6464
Usage
6565
=====
@@ -123,21 +123,21 @@ This module provide a new reporting.
123123

124124
|reporting_module_by_serie|
125125

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
126+
.. |odoo_module_kanban| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_module_kanban.png
127+
.. |odoo_module_form| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_module_form.png
128+
.. |odoo_author| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_author.png
129+
.. |odoo_license| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_license.png
130+
.. |odoo_bin_libs| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_bin_libs.png
131+
.. |odoo_python_libs| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_python_libs.png
132+
.. |reporting_module_by_serie| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/reporting_module_by_serie.png
133133

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

137137
Possible improvements :
138138

139-
- Implement deep code source analysis, like the website
140-
http://odoo-code-search.com/ and specially:
139+
- Implement deep code source analysis, like the website
140+
http://odoo-code-search.com/ and specially:
141141

142142
1. Possibility to search by field or by model name. (Ex:
143143
field:invoice_id)
@@ -150,7 +150,7 @@ Bug Tracker
150150
Bugs are tracked on `GitHub Issues <https://github.com/OCA/interface-github/issues>`_.
151151
In case of trouble, please check there if your issue has already been reported.
152152
If you spotted it first, help us to smash it by providing a detailed and welcomed
153-
`feedback <https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector_odoo%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
153+
`feedback <https://github.com/OCA/interface-github/issues/new?body=module:%20github_connector_odoo%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
154154

155155
Do not contact contributors directly about support or help with technical issues.
156156

@@ -166,15 +166,15 @@ Authors
166166
Contributors
167167
------------
168168

169-
- Sylvain LE GAL (https://twitter.com/legalsylvain)
170-
- `Tecnativa <https://www.tecnativa.com>`__:
169+
- Sylvain LE GAL (https://twitter.com/legalsylvain)
170+
- `Tecnativa <https://www.tecnativa.com>`__:
171171

172-
- Vicent Cubells
173-
- Alexandre Díaz
174-
- Pedro M. Baeza
175-
- Ernesto Tejeda
176-
- Víctor Martínez
177-
- Carolina Fernandez
172+
- Vicent Cubells
173+
- Alexandre Díaz
174+
- Pedro M. Baeza
175+
- Ernesto Tejeda
176+
- Víctor Martínez
177+
- Carolina Fernandez
178178

179179
Maintainers
180180
-----------
@@ -189,6 +189,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
189189
mission is to support the collaborative development of Odoo features and
190190
promote its widespread use.
191191

192-
This module is part of the `OCA/interface-github <https://github.com/OCA/interface-github/tree/17.0/github_connector_odoo>`_ project on GitHub.
192+
This module is part of the `OCA/interface-github <https://github.com/OCA/interface-github/tree/18.0/github_connector_odoo>`_ project on GitHub.
193193

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

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": "17.0.1.0.0",
8+
"version": "18.0.1.0.0",
99
"category": "Connector",
1010
"license": "AGPL-3",
1111
"author": "Odoo Community Association (OCA), Sylvain LE GAL, GRAP",

github_connector_odoo/data/ir_cron.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
1111
<field name="active" eval="False" />
1212
<field name="user_id" ref="base.user_root" />
1313
<field name="interval_type">days</field>
14-
<field name="numbercall">-1</field>
15-
<field name="doall" eval="False" />
1614
<field name="state">code</field>
1715
<field name="model_id" ref="model_odoo_module_version" />
1816
<field name="code">model.cron_clean_odoo_module_version()</field>

github_connector_odoo/models/abstract_action_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AbstractActionMixin(models.AbstractModel):
1010
def action_open(self):
1111
self.ensure_one()
1212
action = self.env["ir.actions.act_window"]._for_xml_id(
13-
"github_connector_odoo.%s" % self._context.get("xml_id")
13+
f"github_connector_odoo.{self._context.get('xml_id')}"
1414
)
1515
action["context"] = dict(self.env.context)
1616
action["context"].pop("group_by", None)

github_connector_odoo/models/github_organization.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ class GithubOrganization(models.Model):
1010
_inherit = "github.organization"
1111

1212
runbot_parse_url = fields.Char(string="URL For Runbot Ids")
13-
1413
default_author_text = fields.Char()
15-
1614
runbot_url_pattern = fields.Char(string="Runbot URL Pattern")

github_connector_odoo/models/github_repository_branch.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,15 @@ class GithubRepositoryBranch(models.Model):
3030
"./addons/\n"
3131
"./openerp/addons/",
3232
)
33-
3433
module_version_ids = fields.One2many(
3534
comodel_name="odoo.module.version",
3635
inverse_name="repository_branch_id",
3736
string="Module Versions",
3837
)
39-
4038
module_version_qty = fields.Integer(
4139
string="Number of Module Versions", compute="_compute_module_version_qty"
4240
)
43-
4441
runbot_url = fields.Char(string="Runbot URL", compute="_compute_runbot_url")
45-
4642
module_version_analysis_rule_info_ids = fields.Many2many(
4743
string="Analysis Rule Info ids (module version)",
4844
comodel_name="odoo.module.version.rule.info",

github_connector_odoo/models/odoo_author.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class OdooAuthor(models.Model):
1313

1414
# Column Section
1515
name = fields.Char(store=True, readonly=True, index=True)
16-
1716
module_version_ids = fields.Many2many(
1817
string="Module Versions",
1918
comodel_name="odoo.module.version",
@@ -22,7 +21,6 @@ class OdooAuthor(models.Model):
2221
column2="module_version_id",
2322
readonly=True,
2423
)
25-
2624
module_ids = fields.Many2many(
2725
string="Modules",
2826
comodel_name="odoo.module",
@@ -31,7 +29,6 @@ class OdooAuthor(models.Model):
3129
column2="module_id",
3230
readonly=True,
3331
)
34-
3532
module_qty = fields.Integer(
3633
string="Number of Modules", compute="_compute_module_qty", store=True
3734
)

github_connector_odoo/models/odoo_lib_bin.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class OdooLibBin(models.Model):
1313

1414
# Column Section
1515
name = fields.Char(index=True, required=True, readonly=True)
16-
1716
module_version_ids = fields.Many2many(
1817
comodel_name="odoo.module.version",
1918
string="Module Versions",
@@ -22,7 +21,6 @@ class OdooLibBin(models.Model):
2221
column2="module_version_id",
2322
readonly=True,
2423
)
25-
2624
module_version_qty = fields.Integer(
2725
string="Number of Module Versions",
2826
compute="_compute_module_version_qty",

github_connector_odoo/models/odoo_lib_python.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class OdooLibPython(models.Model):
1313

1414
# Column Section
1515
name = fields.Char(index=True, required=True, readonly=True)
16-
1716
module_version_ids = fields.Many2many(
1817
comodel_name="odoo.module.version",
1918
string="Module Versions",
@@ -22,7 +21,6 @@ class OdooLibPython(models.Model):
2221
column2="module_version_id",
2322
readonly=True,
2423
)
25-
2624
module_version_qty = fields.Integer(
2725
string="Number of Module Versions",
2826
compute="_compute_module_version_qty",

github_connector_odoo/models/odoo_license.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,19 @@ class OdooLicense(models.Model):
1313

1414
# Column Section
1515
name = fields.Char(index=True, required=True, readonly=True)
16-
1716
module_version_ids = fields.One2many(
1817
comodel_name="odoo.module.version",
1918
inverse_name="license_id",
2019
string="Module Versions",
2120
)
22-
2321
module_version_qty = fields.Integer(
2422
string="Number of Module Versions",
2523
compute="_compute_module_version_qty",
2624
store=True,
2725
)
28-
2926
website = fields.Char()
30-
3127
image = fields.Binary(string="Icon Image", attachment=True)
32-
3328
description = fields.Text()
34-
3529
active = fields.Boolean(default=True)
3630

3731
# Constrains Section

0 commit comments

Comments
 (0)