Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e241218
[ADD] two modules from 8.0 WIP branch
legalsylvain Jul 21, 2017
45c0267
[MIG] github_connector_odoo: Migration to 10.0
legalsylvain Jul 21, 2017
f5832d1
[FIX] _compute_dependency_module_ids
sbidoul Dec 3, 2017
32956b9
[MIG] : Migration to 11.0
cubells May 21, 2018
2e42de3
[FIX] module icon resize problem (#19)
bizzappdev Sep 6, 2018
c15c1b8
icon from manifest (#23)
StephanRozendaal Oct 2, 2018
3eb2f9e
[ADD] github_connector_odoo: New field category_id (#22)
oscarolar Oct 2, 2018
86c98e3
[IMP] Add try-except on branch analyze action (#26)
StephanRozendaal Oct 2, 2018
276b23f
[IMP] Set a default icon per module (#27)
StephanRozendaal Oct 11, 2018
ceeea97
[FIX]do not delete module version if already exists and just update (…
bizzappdev Oct 25, 2018
a273e1f
[FIX] logging interpolation
sbidoul Nov 17, 2018
c27d300
Harden rst2html conversion
sbidoul Nov 27, 2018
33243ed
[FIX] python3 urlopen returns byes
sbidoul Apr 2, 2019
765893b
[MIG] github_connector_odoo: Migration to 12.0
cubells Apr 5, 2019
793c892
[FIX]: Images description and relative reference
Apr 10, 2019
9f5103b
[IMP] github_connector*: Homogeneize API
pedrobaeza Nov 10, 2019
0870078
[IMP] github_connector: Make module_paths on repository branch field …
pedrobaeza Nov 10, 2019
0d42ec9
[IMP] github_connector_odoo: black, isort, prettier
Tardo Apr 14, 2020
e3d165d
[MIG] github_connector_odoo: Migration to 13.0
Tardo Apr 14, 2020
523bc02
[IMP] github_connector_odoo: Images as attachments
pedrobaeza Jun 18, 2020
b82d323
[IMP] github_connector_odoo: Preventing the crash if some arguments a…
CarlosRoca13 Jul 31, 2020
1f0a4b3
[IMP] github_connector: Added the SOURCE_CODE_LOCAL_PATH environment …
CarlosRoca13 Aug 10, 2020
6b8e166
[FIX] github_connector_odoo: Repository branch modules button error
victoralmau Sep 16, 2020
1e0df12
[IMP] github_connector_odoo: black, isort, prettier
Jul 29, 2021
d298738
[MIG] github_connector_odoo: Migration to 14.0
Jul 29, 2021
cf87749
[14.0][FIX] github_connector_*, fix smart button open actions
GSLabIt Jun 28, 2022
64d4ba8
[IMP] github_connector_odoo: Code analysis
victoralmau Sep 17, 2020
76b7341
[FIX] github_connector_odoo: Correctly display image in kanban view.
victoralmau Nov 14, 2022
965ac5a
[FIX] github_connector + github_connector_odoo: Change action .read()…
victoralmau Nov 14, 2022
6ebd7bd
[IMP] github_connector_odoo: black, isort, prettier
victoralmau Nov 17, 2022
4e0e7e2
[MIG] github_connector_odoo: Migration to 15.0
OpenCode Jun 23, 2022
5d3568a
[MIG] github_connector_odoo: Migration to 15.0
victoralmau Nov 17, 2022
f044a6d
[IMP] github_connector_odoo: Improve tests to allow inheritance
victoralmau Mar 8, 2023
c737ad2
[FIX] github_connector_odoo: Set the correct access rules for odoo.mo…
victoralmau Jul 13, 2023
fe6d4fd
[IMP] github_connector_odoo: Code refactor
victoralmau Jul 14, 2023
a979346
[IMP] github_connector: Change pygount to cloc
victoralmau Sep 14, 2023
f6f87bf
[IMP] github_connector*: Skip analysis rule info lines without info
victoralmau Nov 17, 2023
691b098
[MIG] github_connector_odoo: Migration to 16.0
carolinafernandez-tecnativa Jan 9, 2024
60b29d7
[IMP] github_connector_odoo: Avoid DeprecationWarning
pedrobaeza Mar 11, 2024
3a338dd
[IMP] github_connector_odoo: Add maintainers
victoralmau Mar 12, 2024
8aa737b
Added translation using Weblate (Italian)
mymage Mar 20, 2024
bc89feb
[FIX] github_connector_odoo: Proper manifest and icon load
pedrobaeza Apr 24, 2024
24817f5
[IMP] github_connector_odoo: pre-commit auto fixes
victoralmau Nov 8, 2024
77d136e
[MIG] github_connector_odoo: Migration to 17.0
victoralmau Nov 8, 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
4 changes: 2 additions & 2 deletions github_connector/views/view_github_repository_branch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="analysis_rule_ids" colspan="4" />
<label
for="analysis_rule_info_ids"
invisible="analysis_rule_info_ids == []"
invisible="not analysis_rule_info_ids"
/>
<field
name="analysis_rule_info_ids"
widget="one2many_list"
colspan="4"
invisible="analysis_rule_info_ids == []"
invisible="not analysis_rule_info_ids"
>
<tree create="false" delete="false" editable="false">
<field name="group_id" />
Expand Down
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: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.
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": "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"]},
}
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>
Loading