Skip to content

Commit 82d6065

Browse files
committed
Merge PR #129 into 17.0
Signed-off-by pedrobaeza
2 parents 380ba83 + 77d136e commit 82d6065

File tree

74 files changed

+6241
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+6241
-2
lines changed

github_connector/views/view_github_repository_branch.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
191191
<field name="analysis_rule_ids" colspan="4" />
192192
<label
193193
for="analysis_rule_info_ids"
194-
invisible="analysis_rule_info_ids == []"
194+
invisible="not analysis_rule_info_ids"
195195
/>
196196
<field
197197
name="analysis_rule_info_ids"
198198
widget="one2many_list"
199199
colspan="4"
200-
invisible="analysis_rule_info_ids == []"
200+
invisible="not analysis_rule_info_ids"
201201
>
202202
<tree create="false" delete="false" editable="false">
203203
<field name="group_id" />

github_connector_odoo/README.rst

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
=======================
2+
Github Connector - Odoo
3+
=======================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:3927fa22d4103a6017b69f601d113148d631556cbc6a4b4cf96f7ac28c1dc8dc
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |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
21+
:alt: OCA/interface-github
22+
.. |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
24+
:alt: Translate me on Weblate
25+
.. |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
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module was written to extend the functionality of 'Github
32+
Connector' Module if your repositories contain Odoo Modules.
33+
34+
It extends 'Analysis' features to parse code files (readme / manifest
35+
files) and add new models and menus.
36+
37+
|menu|
38+
39+
.. |menu| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/menu.png
40+
41+
**Table of contents**
42+
43+
.. contents::
44+
:local:
45+
46+
Configuration
47+
=============
48+
49+
- Once installed, go to your organization, and set extra settings:
50+
51+
1. The name of your organization in the author keys of the manifest odoo
52+
modules (in the **Default Author Text** field)
53+
2. The URL of the file that contains IDs of your repositories for the
54+
runbot
55+
56+
|github_organization_form|
57+
58+
If you had analyzed previously your repositories with the 'github
59+
Connector' module, you should launch again the Analysis Process for all
60+
your Repository Branches.
61+
62+
.. |github_organization_form| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/github_organization_form.png
63+
64+
Usage
65+
=====
66+
67+
**Odoo Modules**
68+
69+
|odoo_module_kanban|
70+
71+
In each module, you can see the description of the module, the authors,
72+
the available series, and the list of the modules that depend on the
73+
current module.
74+
75+
|odoo_module_form|
76+
77+
**Odoo Authors**
78+
79+
|odoo_author|
80+
81+
This list is based on the 'author' key of the manifest file.
82+
83+
**Odoo License**
84+
85+
This list is based on the 'license' key of the manifest file.
86+
87+
|odoo_license|
88+
89+
**Odoo Bin Libs**
90+
91+
This list is based on the 'external_dependencies' / 'bin' key of the
92+
manifest file.
93+
94+
|odoo_bin_libs|
95+
96+
**Odoo Python Libs**
97+
98+
This list is based on the 'external_dependencies' / 'python' key of the
99+
manifest file.
100+
101+
|odoo_python_libs|
102+
103+
**Analysis source code**
104+
105+
Implements Analysis source code in odoo module versions, now add new
106+
field called "has_odoo_addons" (boolean) in Analysis rule that allow (if
107+
defined) analyze odoo_module_versions and save info about it
108+
109+
**Soource code analysis**
110+
111+
Implements Source code analysis odoo module versions, now addiing new
112+
field called "has_odoo_addons" (boolean) in Analysis rule that (if
113+
defined) allows to analyze odoo_module_versions and save info about it
114+
115+
In 'Repository Branch' / 'Code Analysis', shows the info related to
116+
odoo_module_versions rules analysis too.
117+
118+
**Reporting**
119+
120+
This module provide a new reporting.
121+
122+
**Modules by Serie (and Licenses)**
123+
124+
|reporting_module_by_serie|
125+
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
133+
134+
Known issues / Roadmap
135+
======================
136+
137+
Possible improvements :
138+
139+
- Implement deep code source analysis, like the website
140+
http://odoo-code-search.com/ and specially:
141+
142+
1. Possibility to search by field or by model name. (Ex:
143+
field:invoice_id)
144+
2. Possibility to display the number of XML, Python, Yaml, HTML, CSS
145+
lines
146+
147+
Bug Tracker
148+
===========
149+
150+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/interface-github/issues>`_.
151+
In case of trouble, please check there if your issue has already been reported.
152+
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**>`_.
154+
155+
Do not contact contributors directly about support or help with technical issues.
156+
157+
Credits
158+
=======
159+
160+
Authors
161+
-------
162+
163+
* Sylvain LE GAL
164+
* GRAP
165+
166+
Contributors
167+
------------
168+
169+
- Sylvain LE GAL (https://twitter.com/legalsylvain)
170+
- `Tecnativa <https://www.tecnativa.com>`__:
171+
172+
- Vicent Cubells
173+
- Alexandre Díaz
174+
- Pedro M. Baeza
175+
- Ernesto Tejeda
176+
- Víctor Martínez
177+
- Carolina Fernandez
178+
179+
Maintainers
180+
-----------
181+
182+
This module is maintained by the OCA.
183+
184+
.. image:: https://odoo-community.org/logo.png
185+
:alt: Odoo Community Association
186+
:target: https://odoo-community.org
187+
188+
OCA, or the Odoo Community Association, is a nonprofit organization whose
189+
mission is to support the collaborative development of Odoo features and
190+
promote its widespread use.
191+
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.
193+
194+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

github_connector_odoo/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from . import monkeypatching
2+
from . import models
3+
from . import report
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright (C) 2016-Today: Odoo Community Association (OCA)
2+
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
3+
# Copyright 2024 Tecnativa - Carolina Fernandez
4+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
5+
{
6+
"name": "Github Connector - Odoo",
7+
"summary": "Analyze Odoo modules information from Github repositories",
8+
"version": "17.0.1.0.0",
9+
"category": "Connector",
10+
"license": "AGPL-3",
11+
"author": "Odoo Community Association (OCA), Sylvain LE GAL, GRAP",
12+
"website": "https://github.com/OCA/interface-github",
13+
"depends": ["github_connector"],
14+
"data": [
15+
"security/ir.model.access.csv",
16+
"data/function.xml",
17+
"views/view_reporting.xml",
18+
"views/action.xml",
19+
"views/menu.xml",
20+
"views/view_odoo_license.xml",
21+
"views/view_odoo_author.xml",
22+
"views/view_odoo_lib_bin.xml",
23+
"views/view_odoo_lib_python.xml",
24+
"views/view_odoo_module.xml",
25+
"views/view_odoo_module_version.xml",
26+
"views/view_github_analysis_rule.xml",
27+
"views/view_github_organization.xml",
28+
"views/view_github_repository.xml",
29+
"views/view_github_repository_branch.xml",
30+
"data/odoo_licence.xml",
31+
"data/odoo_category_data.xml",
32+
"data/odoo_manifest_key_data.xml",
33+
"data/ir_cron.xml",
34+
"report/odoo_module_version_rule_info_report_view.xml",
35+
],
36+
"demo": [
37+
"demo/github_analysis_rule_group_demo.xml",
38+
"demo/github_analysis_rule_demo.xml",
39+
"demo/github_organization.xml",
40+
],
41+
"installable": True,
42+
"external_dependencies": {"python": ["pathspec"]},
43+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
Copyright (C) 2016-Today: Odoo Community Association (OCA)
4+
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
5+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
6+
-->
7+
<odoo noupdate="1">
8+
<function model="github.repository.branch" name="_set_state_to_analyze" />
9+
</odoo>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
Copyright (C) 2016-Today: Odoo Community Association (OCA)
4+
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
5+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
6+
-->
7+
<odoo noupdate="1">
8+
<record model="ir.cron" id="cron_clean_odoo_module_version">
9+
<field name="name">Clean Odoo Module Version</field>
10+
<field name="interval_number">1</field>
11+
<field name="active" eval="False" />
12+
<field name="user_id" ref="base.user_root" />
13+
<field name="interval_type">days</field>
14+
<field name="numbercall">-1</field>
15+
<field name="doall" eval="False" />
16+
<field name="state">code</field>
17+
<field name="model_id" ref="model_odoo_module_version" />
18+
<field name="code">model.cron_clean_odoo_module_version()</field>
19+
</record>
20+
</odoo>

github_connector_odoo/data/oca.png

9.23 KB
Loading
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
Copyright (C) 2016-Today: Odoo Community Association (OCA)
4+
@author: Oscar Alcala (https://twitter.com/oscarolar)
5+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
6+
-->
7+
<odoo noupdate="1">
8+
<record id="accounting" model="odoo.category">
9+
<field name="name">Accounting</field>
10+
</record>
11+
<record id="discuss" model="odoo.category">
12+
<field name="name">Discuss</field>
13+
</record>
14+
<record id="document_management" model="odoo.category">
15+
<field name="name">Document Management</field>
16+
</record>
17+
<record id="ecommerce" model="odoo.category">
18+
<field name="name">eCommerce</field>
19+
</record>
20+
<record id="human_resources" model="odoo.category">
21+
<field name="name">Human Resources</field>
22+
</record>
23+
<record id="industries" model="odoo.category">
24+
<field name="name">Industries</field>
25+
</record>
26+
<record id="localization" model="odoo.category">
27+
<field name="name">Localization</field>
28+
</record>
29+
<record id="manufacturing" model="odoo.category">
30+
<field name="name">Manufacturing</field>
31+
</record>
32+
<record id="point_of_sale" model="odoo.category">
33+
<field name="name">Point of Sale</field>
34+
</record>
35+
<record id="productivity" model="odoo.category">
36+
<field name="name">Productivity</field>
37+
</record>
38+
<record id="project" model="odoo.category">
39+
<field name="name">Project</field>
40+
</record>
41+
<record id="purchases" model="odoo.category">
42+
<field name="name">Purchases</field>
43+
</record>
44+
<record id="sales" model="odoo.category">
45+
<field name="name">Sales</field>
46+
</record>
47+
<record id="warehouse" model="odoo.category">
48+
<field name="name">Warehouse</field>
49+
</record>
50+
<record id="website" model="odoo.category">
51+
<field name="name">Website</field>
52+
</record>
53+
<record id="extra_tools" model="odoo.category">
54+
<field name="name">Extra Tools</field>
55+
</record>
56+
<record id="other" model="odoo.category">
57+
<field name="name">Other</field>
58+
</record>
59+
</odoo>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
Copyright (C) 2016-Today: Odoo Community Association (OCA)
4+
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
5+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
6+
-->
7+
<odoo noupdate="1">
8+
<record model="odoo.license" id="odoo_licence_gpl_3">
9+
<field name="name">GPL-3</field>
10+
<field name="website">http://www.gnu.org/licenses/gpl-3.0.html</field>
11+
<field
12+
name="image"
13+
type="base64"
14+
file="github_connector_odoo/static/src/img/odoo_licence_gpl_3-image.png"
15+
/>
16+
<field
17+
name="description"
18+
>You may copy, distribute and modify the software as long as you track changes/dates in source files. Any modifications to or software including (via compiler) GPL-licensed code must also be made available under the GPL along with build and install instructions.</field>
19+
</record>
20+
<record model="odoo.license" id="odoo_licence_lgpl_3">
21+
<field name="name">LGPL-3</field>
22+
<field name="website">http://www.gnu.org/licenses/lgpl-3.0.html</field>
23+
<field
24+
name="image"
25+
type="base64"
26+
file="github_connector_odoo/static/src/img/odoo_licence_lgpl_3-image.png"
27+
/>
28+
<field
29+
name="description"
30+
>This license is mainly applied to libraries. You may copy, distribute and modify the software provided that modifications are described and licensed for free under LGPL. Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL, but applications that use the library don't have to be.</field>
31+
</record>
32+
<record model="odoo.license" id="odoo_licence_agpl_3">
33+
<field name="name">AGPL-3</field>
34+
<field name="website">http://www.gnu.org/licenses/agpl-3.0.html</field>
35+
<field
36+
name="image"
37+
type="base64"
38+
file="github_connector_odoo/static/src/img/odoo_licence_agpl_3-image.png"
39+
/>
40+
<field
41+
name="description"
42+
>The AGPL license differs from the other GNU licenses in that it was built for network software. You can distribute modified versions if you keep track of the changes and the date you made them. As per usual with GNU licenses, you must license derivatives under AGPL. It provides the same restrictions and freedoms as the GPLv3 but with an additional clause which makes it so that source code must be distributed along with web publication. Since web sites and services are never distributed in the traditional sense, the AGPL is the GPL of the web.</field>
43+
</record>
44+
</odoo>

0 commit comments

Comments
 (0)