Skip to content

Commit b35e95a

Browse files
committed
Merge PR #119 into 16.0
Signed-off-by pedrobaeza
2 parents bf153ad + 92dcfa5 commit b35e95a

File tree

72 files changed

+5354
-0
lines changed

Some content is hidden

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

72 files changed

+5354
-0
lines changed

github_connector_odoo/README.rst

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

github_connector_odoo/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import models
2+
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": "16.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>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4+
-->
5+
<odoo noupdate="1">
6+
<record id="odoo_manifest_key_data" model="odoo.manifest.key">
7+
<field name="name">data</field>
8+
</record>
9+
<record id="odoo_manifest_key_demo" model="odoo.manifest.key">
10+
<field name="name">demo</field>
11+
</record>
12+
</odoo>

0 commit comments

Comments
 (0)