Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
f3c4487
[ADD] two modules from 8.0 WIP branch
legalsylvain Jul 21, 2017
4d301e9
[MIG] github_connector_odoo: Migration to 10.0
legalsylvain Jul 21, 2017
c9e0916
[FIX] _compute_dependency_module_ids
sbidoul Dec 3, 2017
945b719
[MIG] : Migration to 11.0
cubells May 21, 2018
90b72a6
[FIX] module icon resize problem (#19)
bizzappdev Sep 6, 2018
2958ced
icon from manifest (#23)
StephanRozendaal Oct 2, 2018
59096a0
[ADD] github_connector_odoo: New field category_id (#22)
oscarolar Oct 2, 2018
41e7a56
[IMP] Add try-except on branch analyze action (#26)
StephanRozendaal Oct 2, 2018
7de7185
[IMP] Set a default icon per module (#27)
StephanRozendaal Oct 11, 2018
fafff1f
[FIX]do not delete module version if already exists and just update (…
bizzappdev Oct 25, 2018
36ca0c1
[FIX] logging interpolation
sbidoul Nov 17, 2018
d0fe0ac
Harden rst2html conversion
sbidoul Nov 27, 2018
5439dc4
[FIX] python3 urlopen returns byes
sbidoul Apr 2, 2019
8ad98ce
[MIG] github_connector_odoo: Migration to 12.0
cubells Apr 5, 2019
7e8aba3
[FIX]: Images description and relative reference
Apr 10, 2019
5a770ca
[IMP] github_connector*: Homogeneize API
pedrobaeza Nov 10, 2019
64e87dd
[IMP] github_connector: Make module_paths on repository branch field …
pedrobaeza Nov 10, 2019
a11d477
[IMP] github_connector_odoo: black, isort, prettier
Tardo Apr 14, 2020
6d79a80
[MIG] github_connector_odoo: Migration to 13.0
Tardo Apr 14, 2020
95296a2
[IMP] github_connector_odoo: Images as attachments
pedrobaeza Jun 18, 2020
ac2cd95
[IMP] github_connector_odoo: Preventing the crash if some arguments a…
CarlosRoca13 Jul 31, 2020
1638bf8
[IMP] github_connector: Added the SOURCE_CODE_LOCAL_PATH environment …
CarlosRoca13 Aug 10, 2020
9b24b6a
[FIX] github_connector_odoo: Repository branch modules button error
victoralmau Sep 16, 2020
19ebd94
[IMP] github_connector_odoo: black, isort, prettier
Jul 29, 2021
dc19ef3
[MIG] github_connector_odoo: Migration to 14.0
Jul 29, 2021
2e8fd63
[14.0][FIX] github_connector_*, fix smart button open actions
GSLabIt Jun 28, 2022
78e0acd
[IMP] github_connector_odoo: Code analysis
victoralmau Sep 17, 2020
0188a93
[FIX] github_connector_odoo: Correctly display image in kanban view.
victoralmau Nov 14, 2022
19f692b
[FIX] github_connector + github_connector_odoo: Change action .read()…
victoralmau Nov 14, 2022
edc7926
[IMP] github_connector_odoo: black, isort, prettier
victoralmau Nov 17, 2022
ccee198
[MIG] github_connector_odoo: Migration to 15.0
OpenCode Jun 23, 2022
3548113
[MIG] github_connector_odoo: Migration to 15.0
victoralmau Nov 17, 2022
39e3e0f
[IMP] github_connector_odoo: Improve tests to allow inheritance
victoralmau Mar 8, 2023
dbabf66
[FIX] github_connector_odoo: Set the correct access rules for odoo.mo…
victoralmau Jul 13, 2023
563f3e2
[IMP] github_connector_odoo: Code refactor
victoralmau Jul 14, 2023
c59e54f
[IMP] github_connector: Change pygount to cloc
victoralmau Sep 14, 2023
3d330ad
[IMP] github_connector*: Skip analysis rule info lines without info
victoralmau Nov 17, 2023
26aa9e3
[IMP] github_connector_odoo: pre-commit stuff
carolinafernandez-tecnativa Jan 9, 2024
92dcfa5
[MIG] github_connector_odoo: Migration to 16.0
carolinafernandez-tecnativa Jan 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 188 additions & 0 deletions github_connector_odoo/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
=======================
Github Connector - Odoo
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:cc1a7ff52de1c7c111c6f139810de7d928ec8e6c580e2707d1b58961f7bb7266
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/16.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-16-0/interface-github-16-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=16.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.

.. image:: https://raw.githubusercontent.com/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

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

If you had analyzed previously your repositories with the
'github Connector' module, you should launch again the Analysis Process
for all your Repository Branches.

Usage
=====

**Odoo Modules**

.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_module_kanban.png

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.

.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_module_form.png



**Odoo Authors**

.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_author.png

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.

.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_license.png



**Odoo Bin Libs**

This list is based on the 'external_dependencies' / 'bin' key of the
manifest file.

.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_bin_libs.png



**Odoo Python Libs**

This list is based on the 'external_dependencies' / 'python' key of the
manifest file.

.. image:: https://raw.githubusercontent.com/github_connector_odoo/static/description/odoo_python_libs.png



**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)**

.. image:: https://raw.githubusercontent.com/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:%2016.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/16.0/github_connector_odoo>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions github_connector_odoo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import report
43 changes: 43 additions & 0 deletions github_connector_odoo/__manifest__.py
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": "16.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"]},
}
9 changes: 9 additions & 0 deletions github_connector_odoo/data/function.xml
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>
20 changes: 20 additions & 0 deletions github_connector_odoo/data/ir_cron.xml
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>
Binary file added github_connector_odoo/data/oca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions github_connector_odoo/data/odoo_category_data.xml
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>
44 changes: 44 additions & 0 deletions github_connector_odoo/data/odoo_licence.xml
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>
12 changes: 12 additions & 0 deletions github_connector_odoo/data/odoo_manifest_key_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo noupdate="1">
<record id="odoo_manifest_key_data" model="odoo.manifest.key">
<field name="name">data</field>
</record>
<record id="odoo_manifest_key_demo" model="odoo.manifest.key">
<field name="name">demo</field>
</record>
</odoo>
Loading