-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
74 changed files
with
6,241 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
======================= | ||
Github Connector - Odoo | ||
======================= | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:3927fa22d4103a6017b69f601d113148d631556cbc6a4b4cf96f7ac28c1dc8dc | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Finterface--github-lightgray.png?logo=github | ||
:target: https://github.com/OCA/interface-github/tree/17.0/github_connector_odoo | ||
:alt: OCA/interface-github | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/interface-github-17-0/interface-github-17-0-github_connector_odoo | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/interface-github&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module was written to extend the functionality of 'Github | ||
Connector' Module if your repositories contain Odoo Modules. | ||
|
||
It extends 'Analysis' features to parse code files (readme / manifest | ||
files) and add new models and menus. | ||
|
||
|menu| | ||
|
||
.. |menu| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/menu.png | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
- Once installed, go to your organization, and set extra settings: | ||
|
||
1. The name of your organization in the author keys of the manifest odoo | ||
modules (in the **Default Author Text** field) | ||
2. The URL of the file that contains IDs of your repositories for the | ||
runbot | ||
|
||
|github_organization_form| | ||
|
||
If you had analyzed previously your repositories with the 'github | ||
Connector' module, you should launch again the Analysis Process for all | ||
your Repository Branches. | ||
|
||
.. |github_organization_form| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/github_organization_form.png | ||
|
||
Usage | ||
===== | ||
|
||
**Odoo Modules** | ||
|
||
|odoo_module_kanban| | ||
|
||
In each module, you can see the description of the module, the authors, | ||
the available series, and the list of the modules that depend on the | ||
current module. | ||
|
||
|odoo_module_form| | ||
|
||
**Odoo Authors** | ||
|
||
|odoo_author| | ||
|
||
This list is based on the 'author' key of the manifest file. | ||
|
||
**Odoo License** | ||
|
||
This list is based on the 'license' key of the manifest file. | ||
|
||
|odoo_license| | ||
|
||
**Odoo Bin Libs** | ||
|
||
This list is based on the 'external_dependencies' / 'bin' key of the | ||
manifest file. | ||
|
||
|odoo_bin_libs| | ||
|
||
**Odoo Python Libs** | ||
|
||
This list is based on the 'external_dependencies' / 'python' key of the | ||
manifest file. | ||
|
||
|odoo_python_libs| | ||
|
||
**Analysis source code** | ||
|
||
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 | ||
|
||
**Soource code analysis** | ||
|
||
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 | ||
|
||
In 'Repository Branch' / 'Code Analysis', shows the info related to | ||
odoo_module_versions rules analysis too. | ||
|
||
**Reporting** | ||
|
||
This module provide a new reporting. | ||
|
||
**Modules by Serie (and Licenses)** | ||
|
||
|reporting_module_by_serie| | ||
|
||
.. |odoo_module_kanban| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_module_kanban.png | ||
.. |odoo_module_form| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_module_form.png | ||
.. |odoo_author| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_author.png | ||
.. |odoo_license| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_license.png | ||
.. |odoo_bin_libs| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_bin_libs.png | ||
.. |odoo_python_libs| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/odoo_python_libs.png | ||
.. |reporting_module_by_serie| image:: https://raw.githubusercontent.com/OCA/interface-github/17.0/github_connector_odoo/static/description/reporting_module_by_serie.png | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
Possible improvements : | ||
|
||
- Implement deep code source analysis, like the website | ||
http://odoo-code-search.com/ and specially: | ||
|
||
1. Possibility to search by field or by model name. (Ex: | ||
field:invoice_id) | ||
2. Possibility to display the number of XML, Python, Yaml, HTML, CSS | ||
lines | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/interface-github/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`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**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
------- | ||
|
||
* Sylvain LE GAL | ||
* GRAP | ||
|
||
Contributors | ||
------------ | ||
|
||
- Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- Vicent Cubells | ||
- Alexandre Díaz | ||
- Pedro M. Baeza | ||
- Ernesto Tejeda | ||
- Víctor Martínez | ||
- Carolina Fernandez | ||
|
||
Maintainers | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/interface-github <https://github.com/OCA/interface-github/tree/17.0/github_connector_odoo>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import monkeypatching | ||
from . import models | ||
from . import report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (C) 2016-Today: Odoo Community Association (OCA) | ||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
# Copyright 2024 Tecnativa - Carolina Fernandez | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Github Connector - Odoo", | ||
"summary": "Analyze Odoo modules information from Github repositories", | ||
"version": "17.0.1.0.0", | ||
"category": "Connector", | ||
"license": "AGPL-3", | ||
"author": "Odoo Community Association (OCA), Sylvain LE GAL, GRAP", | ||
"website": "https://github.com/OCA/interface-github", | ||
"depends": ["github_connector"], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"data/function.xml", | ||
"views/view_reporting.xml", | ||
"views/action.xml", | ||
"views/menu.xml", | ||
"views/view_odoo_license.xml", | ||
"views/view_odoo_author.xml", | ||
"views/view_odoo_lib_bin.xml", | ||
"views/view_odoo_lib_python.xml", | ||
"views/view_odoo_module.xml", | ||
"views/view_odoo_module_version.xml", | ||
"views/view_github_analysis_rule.xml", | ||
"views/view_github_organization.xml", | ||
"views/view_github_repository.xml", | ||
"views/view_github_repository_branch.xml", | ||
"data/odoo_licence.xml", | ||
"data/odoo_category_data.xml", | ||
"data/odoo_manifest_key_data.xml", | ||
"data/ir_cron.xml", | ||
"report/odoo_module_version_rule_info_report_view.xml", | ||
], | ||
"demo": [ | ||
"demo/github_analysis_rule_group_demo.xml", | ||
"demo/github_analysis_rule_demo.xml", | ||
"demo/github_organization.xml", | ||
], | ||
"installable": True, | ||
"external_dependencies": {"python": ["pathspec"]}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
Copyright (C) 2016-Today: Odoo Community Association (OCA) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo noupdate="1"> | ||
<function model="github.repository.branch" name="_set_state_to_analyze" /> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
Copyright (C) 2016-Today: Odoo Community Association (OCA) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo noupdate="1"> | ||
<record model="ir.cron" id="cron_clean_odoo_module_version"> | ||
<field name="name">Clean Odoo Module Version</field> | ||
<field name="interval_number">1</field> | ||
<field name="active" eval="False" /> | ||
<field name="user_id" ref="base.user_root" /> | ||
<field name="interval_type">days</field> | ||
<field name="numbercall">-1</field> | ||
<field name="doall" eval="False" /> | ||
<field name="state">code</field> | ||
<field name="model_id" ref="model_odoo_module_version" /> | ||
<field name="code">model.cron_clean_odoo_module_version()</field> | ||
</record> | ||
</odoo> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
Copyright (C) 2016-Today: Odoo Community Association (OCA) | ||
@author: Oscar Alcala (https://twitter.com/oscarolar) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo noupdate="1"> | ||
<record id="accounting" model="odoo.category"> | ||
<field name="name">Accounting</field> | ||
</record> | ||
<record id="discuss" model="odoo.category"> | ||
<field name="name">Discuss</field> | ||
</record> | ||
<record id="document_management" model="odoo.category"> | ||
<field name="name">Document Management</field> | ||
</record> | ||
<record id="ecommerce" model="odoo.category"> | ||
<field name="name">eCommerce</field> | ||
</record> | ||
<record id="human_resources" model="odoo.category"> | ||
<field name="name">Human Resources</field> | ||
</record> | ||
<record id="industries" model="odoo.category"> | ||
<field name="name">Industries</field> | ||
</record> | ||
<record id="localization" model="odoo.category"> | ||
<field name="name">Localization</field> | ||
</record> | ||
<record id="manufacturing" model="odoo.category"> | ||
<field name="name">Manufacturing</field> | ||
</record> | ||
<record id="point_of_sale" model="odoo.category"> | ||
<field name="name">Point of Sale</field> | ||
</record> | ||
<record id="productivity" model="odoo.category"> | ||
<field name="name">Productivity</field> | ||
</record> | ||
<record id="project" model="odoo.category"> | ||
<field name="name">Project</field> | ||
</record> | ||
<record id="purchases" model="odoo.category"> | ||
<field name="name">Purchases</field> | ||
</record> | ||
<record id="sales" model="odoo.category"> | ||
<field name="name">Sales</field> | ||
</record> | ||
<record id="warehouse" model="odoo.category"> | ||
<field name="name">Warehouse</field> | ||
</record> | ||
<record id="website" model="odoo.category"> | ||
<field name="name">Website</field> | ||
</record> | ||
<record id="extra_tools" model="odoo.category"> | ||
<field name="name">Extra Tools</field> | ||
</record> | ||
<record id="other" model="odoo.category"> | ||
<field name="name">Other</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
Copyright (C) 2016-Today: Odoo Community Association (OCA) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo noupdate="1"> | ||
<record model="odoo.license" id="odoo_licence_gpl_3"> | ||
<field name="name">GPL-3</field> | ||
<field name="website">http://www.gnu.org/licenses/gpl-3.0.html</field> | ||
<field | ||
name="image" | ||
type="base64" | ||
file="github_connector_odoo/static/src/img/odoo_licence_gpl_3-image.png" | ||
/> | ||
<field | ||
name="description" | ||
>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> | ||
</record> | ||
<record model="odoo.license" id="odoo_licence_lgpl_3"> | ||
<field name="name">LGPL-3</field> | ||
<field name="website">http://www.gnu.org/licenses/lgpl-3.0.html</field> | ||
<field | ||
name="image" | ||
type="base64" | ||
file="github_connector_odoo/static/src/img/odoo_licence_lgpl_3-image.png" | ||
/> | ||
<field | ||
name="description" | ||
>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> | ||
</record> | ||
<record model="odoo.license" id="odoo_licence_agpl_3"> | ||
<field name="name">AGPL-3</field> | ||
<field name="website">http://www.gnu.org/licenses/agpl-3.0.html</field> | ||
<field | ||
name="image" | ||
type="base64" | ||
file="github_connector_odoo/static/src/img/odoo_licence_agpl_3-image.png" | ||
/> | ||
<field | ||
name="description" | ||
>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> | ||
</record> | ||
</odoo> |
Oops, something went wrong.