Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
cb8633b
[ADD] two modules from 8.0 WIP branch
legalsylvain Jul 21, 2017
20c1c17
[MIG] github_connector_odoo: Migration to 10.0
legalsylvain Jul 21, 2017
1abcba9
[FIX] _compute_dependency_module_ids
sbidoul Dec 3, 2017
a42d496
[MIG] : Migration to 11.0
cubells May 21, 2018
f4b4683
[FIX] module icon resize problem (#19)
bizzappdev Sep 6, 2018
efead01
icon from manifest (#23)
StephanRozendaal Oct 2, 2018
e785a52
[ADD] github_connector_odoo: New field category_id (#22)
oscarolar Oct 2, 2018
37e8b09
[IMP] Add try-except on branch analyze action (#26)
StephanRozendaal Oct 2, 2018
747b511
[IMP] Set a default icon per module (#27)
StephanRozendaal Oct 11, 2018
836605b
[FIX]do not delete module version if already exists and just update (…
bizzappdev Oct 25, 2018
5531fd7
[FIX] logging interpolation
sbidoul Nov 17, 2018
42e98d7
Harden rst2html conversion
sbidoul Nov 27, 2018
d78af87
[FIX] python3 urlopen returns byes
sbidoul Apr 2, 2019
9403848
[MIG] github_connector_odoo: Migration to 12.0
cubells Apr 5, 2019
e270234
[FIX]: Images description and relative reference
Apr 10, 2019
54faa9f
[IMP] github_connector*: Homogeneize API
pedrobaeza Nov 10, 2019
80541b1
[IMP] github_connector: Make module_paths on repository branch field …
pedrobaeza Nov 10, 2019
3a4c8e2
[IMP] github_connector_odoo: black, isort, prettier
Tardo Apr 14, 2020
ca8fedd
[MIG] github_connector_odoo: Migration to 13.0
Tardo Apr 14, 2020
a0f95b2
[IMP] github_connector_odoo: Images as attachments
pedrobaeza Jun 18, 2020
cc3f0f0
[IMP] github_connector_odoo: Preventing the crash if some arguments a…
CarlosRoca13 Jul 31, 2020
a65844c
[IMP] github_connector: Added the SOURCE_CODE_LOCAL_PATH environment …
CarlosRoca13 Aug 10, 2020
5433a76
[FIX] github_connector_odoo: Repository branch modules button error
victoralmau Sep 16, 2020
33b4df2
[IMP] github_connector_odoo: black, isort, prettier
Jul 29, 2021
df1b65f
[MIG] github_connector_odoo: Migration to 14.0
Jul 29, 2021
4876cde
[14.0][FIX] github_connector_*, fix smart button open actions
GSLabIt Jun 28, 2022
031e558
[IMP] github_connector_odoo: Code analysis
victoralmau Sep 17, 2020
6309a80
[FIX] github_connector_odoo: Correctly display image in kanban view.
victoralmau Nov 14, 2022
f4d45f1
[FIX] github_connector + github_connector_odoo: Change action .read()…
victoralmau Nov 14, 2022
927da2f
[IMP] github_connector_odoo: black, isort, prettier
victoralmau Nov 17, 2022
c46f463
[MIG] github_connector_odoo: Migration to 15.0
OpenCode Jun 23, 2022
b09ea7b
[MIG] github_connector_odoo: Migration to 15.0
victoralmau Nov 17, 2022
287334b
[IMP] github_connector_odoo: Improve tests to allow inheritance
victoralmau Mar 8, 2023
de0d022
[FIX] github_connector_odoo: Set the correct access rules for odoo.mo…
victoralmau Jul 13, 2023
50c7b22
[IMP] github_connector_odoo: Code refactor
victoralmau Jul 14, 2023
427a975
[IMP] github_connector: Change pygount to cloc
victoralmau Sep 14, 2023
5b786be
[IMP] github_connector*: Skip analysis rule info lines without info
victoralmau Nov 17, 2023
5b6a582
[MIG] github_connector_odoo: Migration to 16.0
carolinafernandez-tecnativa Jan 9, 2024
a77642f
[IMP] github_connector_odoo: Avoid DeprecationWarning
pedrobaeza Mar 11, 2024
cf00ad6
[IMP] github_connector_odoo: Add maintainers
victoralmau Mar 12, 2024
63047f2
Added translation using Weblate (Italian)
mymage Mar 20, 2024
659e25a
[FIX] github_connector_odoo: Proper manifest and icon load
pedrobaeza Apr 24, 2024
8f8103a
[IMP] github_connector_odoo: pre-commit auto fixes
victoralmau Nov 8, 2024
412ab80
[MIG] github_connector_odoo: Migration to 17.0
victoralmau Nov 8, 2024
92515c4
[IMP] github_connector_odoo: pre-commit auto fixes
carlos-lopez-tecnativa May 21, 2025
0662862
[MIG] github_connector_odoo: Migration to version 18.0
carlos-lopez-tecnativa May 20, 2025
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
194 changes: 194 additions & 0 deletions github_connector_odoo/README.rst
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:04725d9223195564f0324b1845c0395271f93a92df2969fc07d414572db446ef
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.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-18-0/interface-github-18-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=18.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/18.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/18.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/18.0/github_connector_odoo/static/description/odoo_module_kanban.png
.. |odoo_module_form| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_module_form.png
.. |odoo_author| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_author.png
.. |odoo_license| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_license.png
.. |odoo_bin_libs| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_bin_libs.png
.. |odoo_python_libs| image:: https://raw.githubusercontent.com/OCA/interface-github/18.0/github_connector_odoo/static/description/odoo_python_libs.png
.. |reporting_module_by_serie| image:: https://raw.githubusercontent.com/OCA/interface-github/18.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:%2018.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/18.0/github_connector_odoo>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions github_connector_odoo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import monkeypatching
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": "18.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>
18 changes: 18 additions & 0 deletions github_connector_odoo/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?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="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