diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..66bc2cb --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +odoo_test_helper diff --git a/vcp/__init__.py b/vcp/__init__.py index 91c5580..0650744 100644 --- a/vcp/__init__.py +++ b/vcp/__init__.py @@ -1,2 +1 @@ -from . import controllers from . import models diff --git a/vcp/__manifest__.py b/vcp/__manifest__.py index 2f85b83..0d061e0 100644 --- a/vcp/__manifest__.py +++ b/vcp/__manifest__.py @@ -8,11 +8,10 @@ "license": "AGPL-3", "author": "Dixmit,Odoo Community Association (OCA)", "website": "https://github.com/OCA/version-control-platform", - "depends": ["website_partner"], + "depends": ["base"], "data": [ "security/ir.model.access.csv", "data/ir_cron.xml", - "templates/templates.xml", "views/menu.xml", "views/vcp_comment.xml", "views/vcp_review.xml", @@ -22,14 +21,4 @@ "views/vcp_platform.xml", ], "demo": [], - "assets": { - "web.assets_frontend": [ - "vcp/static/src/components/**/*.esm.js", - "vcp/static/src/components/**/*.xml", - "vcp/static/src/components/**/*.scss", - ], - "web.assets_tests": [ - "vcp/static/tests/**/*", - ], - }, } diff --git a/vcp/models/res_partner.py b/vcp/models/res_partner.py index b2794bf..cdecce8 100644 --- a/vcp/models/res_partner.py +++ b/vcp/models/res_partner.py @@ -60,8 +60,6 @@ def _compute_vcp_contributions_field(self, field): ) def _get_contributor_url(self): - if self.is_published and self.website_url: - return self.website_url return False def _get_contributors_name(self, kind, **kwargs): diff --git a/vcp/models/vcp_platform.py b/vcp/models/vcp_platform.py index bb68359..8d6e3d7 100644 --- a/vcp/models/vcp_platform.py +++ b/vcp/models/vcp_platform.py @@ -42,7 +42,7 @@ class VCPPlatform(models.Model): image_64 = fields.Image( max_width=64, max_height=64, store=True, related="image_1920", string="Image 64" ) - kind = fields.Selection([]) + kind = fields.Selection([], required=True) key_ids = fields.One2many( comodel_name="vcp.platform.key", inverse_name="platform_id", diff --git a/vcp/tests/__init__.py b/vcp/tests/__init__.py index 8307da4..02bd456 100644 --- a/vcp/tests/__init__.py +++ b/vcp/tests/__init__.py @@ -1 +1 @@ -from . import test_portal +from . import test_base diff --git a/vcp/tests/models/__init__.py b/vcp/tests/models/__init__.py new file mode 100644 index 0000000..ccba792 --- /dev/null +++ b/vcp/tests/models/__init__.py @@ -0,0 +1 @@ +from . import vcp_platform diff --git a/vcp/tests/models/vcp_platform.py b/vcp/tests/models/vcp_platform.py new file mode 100644 index 0000000..c37936e --- /dev/null +++ b/vcp/tests/models/vcp_platform.py @@ -0,0 +1,16 @@ +# Copyright 2026 GRAP +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +import logging + +from odoo import fields, models + +_logger = logging.getLogger(__name__) + + +class VCPPlatform(models.Model): + _inherit = "vcp.platform" + + kind = fields.Selection( + selection_add=[("dummy", "Dummy Value")], + ondelete={"dummy": "cascade"}, + ) diff --git a/vcp/tests/test_portal.py b/vcp/tests/test_base.py similarity index 90% rename from vcp/tests/test_portal.py rename to vcp/tests/test_base.py index fc11101..05117da 100644 --- a/vcp/tests/test_portal.py +++ b/vcp/tests/test_base.py @@ -3,6 +3,8 @@ from datetime import timedelta +from odoo_test_helper import FakeModelLoader + from odoo.fields import Date from odoo.tests import tagged @@ -10,10 +12,17 @@ @tagged("post_install", "-at_install") -class TestUi(HttpCaseWithUserDemo, HttpCaseWithUserPortal): +class TestBase(HttpCaseWithUserDemo, HttpCaseWithUserPortal): @classmethod def setUpClass(cls): super().setUpClass() + # Load fake order model + cls.loader = FakeModelLoader(cls.env, cls.__module__) + cls.loader.backup_registry() + from .models.vcp_platform import VCPPlatform + + cls.loader.update_registry((VCPPlatform,)) + # be sure some expected values are set otherwise homepage may fail date = Date.today() date = date - timedelta(days=date.day) @@ -32,6 +41,7 @@ def setUpClass(cls): "name": "oca", "short_description": "OCA", "description": "OCA", + "kind": "dummy", } ) repository = cls.env["vcp.repository"].create( @@ -120,6 +130,3 @@ def setUpClass(cls): "created_at": date, } ) - - def test_01_portal_load_tour(self): - self.start_tour("/", "portal_load_contributors_github", login="portal") diff --git a/vcp_github/models/vcp_platform.py b/vcp_github/models/vcp_platform.py index 656128f..ddd91c7 100644 --- a/vcp_github/models/vcp_platform.py +++ b/vcp_github/models/vcp_platform.py @@ -8,7 +8,8 @@ import requests from pytz import UTC -from odoo import fields, models +from odoo import _, fields, models +from odoo.exceptions import ValidationError class VcpPlatform(models.Model): @@ -28,6 +29,10 @@ def _get_github_clients(self): def _update_information_github(self): self.ensure_one() clients = self._get_github_clients() + if not clients: + raise ValidationError( + _("No github clients configured. Please enter at least an API Key.") + ) org = clients[0].organization(self.name) self.short_description = org.name self.description = org.description diff --git a/vcp_portal/README.rst b/vcp_portal/README.rst new file mode 100644 index 0000000..e3cac0f --- /dev/null +++ b/vcp_portal/README.rst @@ -0,0 +1,85 @@ +============ +Vcp - Portal +============ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:649a33ecc95d6699ddbe80c0b0781a81f36d66c4b09839dc8f133a4127369bb7 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fversion--control--platform-lightgray.png?logo=github + :target: https://github.com/OCA/version-control-platform/tree/18.0/vcp_portal + :alt: OCA/version-control-platform +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/version-control-platform-18-0/version-control-platform-18-0-vcp_portal + :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/version-control-platform&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of ``portal`` module, when ``vcp`` +module is installed. + +It adds a new entry in the partner portal menu. + +|portal_menu| + +When selecting this new item, partner has the possibility to see, some +indicators regarding contributions. + +|portal_form| + +.. |portal_menu| image:: https://raw.githubusercontent.com/OCA/version-control-platform/18.0/vcp_portal/static/description/portal_menu.png +.. |portal_form| image:: https://raw.githubusercontent.com/OCA/version-control-platform/18.0/vcp_portal/static/description/portal_form.png + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Dixmit +* GRAP + +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/version-control-platform `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/vcp_portal/__init__.py b/vcp_portal/__init__.py new file mode 100644 index 0000000..e046e49 --- /dev/null +++ b/vcp_portal/__init__.py @@ -0,0 +1 @@ +from . import controllers diff --git a/vcp_portal/__manifest__.py b/vcp_portal/__manifest__.py new file mode 100644 index 0000000..cfa9d1c --- /dev/null +++ b/vcp_portal/__manifest__.py @@ -0,0 +1,27 @@ +# Copyright 2026 GRAP +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Vcp - Portal", + "summary": "Glue module between Virtual Control Platform and Portal", + "version": "18.0.1.0.0", + "license": "AGPL-3", + "author": "Dixmit,GRAP,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/version-control-platform", + "depends": ["vcp", "portal"], + "data": [ + "templates/templates.xml", + ], + "demo": [], + "assets": { + "web.assets_frontend": [ + "vcp_portal/static/src/components/**/*.esm.js", + "vcp_portal/static/src/components/**/*.xml", + "vcp_portal/static/src/components/**/*.scss", + ], + "web.assets_tests": [ + "vcp_portal/static/tests/**/*", + ], + }, + "auto_install": True, +} diff --git a/vcp/controllers/__init__.py b/vcp_portal/controllers/__init__.py similarity index 100% rename from vcp/controllers/__init__.py rename to vcp_portal/controllers/__init__.py diff --git a/vcp/controllers/main.py b/vcp_portal/controllers/main.py similarity index 98% rename from vcp/controllers/main.py rename to vcp_portal/controllers/main.py index f9b2080..a2283a1 100644 --- a/vcp/controllers/main.py +++ b/vcp_portal/controllers/main.py @@ -25,7 +25,7 @@ def contributors_vcp(self, vcp=None): if vcp is None: vcps = request.env["vcp.platform"].search([]) return request.render( - "vcp.vcp_platforms_template", + "vcp_portal.vcp_platforms_template", {"vcps": vcps, **values}, ) vcp_id = ( @@ -35,7 +35,7 @@ def contributors_vcp(self, vcp=None): .id ) return request.render( - "vcp.vcp_platform_template", + "vcp_portal.vcp_platform_template", {"vcp": vcp_id, **values}, ) diff --git a/vcp_portal/i18n/fr.po b/vcp_portal/i18n/fr.po new file mode 100644 index 0000000..80b08c3 --- /dev/null +++ b/vcp_portal/i18n/fr.po @@ -0,0 +1,15 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * vcp_website_portal +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" diff --git a/vcp_portal/pyproject.toml b/vcp_portal/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/vcp_portal/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/vcp_portal/readme/DESCRIPTION.md b/vcp_portal/readme/DESCRIPTION.md new file mode 100644 index 0000000..2b3a7fc --- /dev/null +++ b/vcp_portal/readme/DESCRIPTION.md @@ -0,0 +1,10 @@ +This module extends the functionality of `portal` module, +when `vcp` module is installed. + +It adds a new entry in the partner portal menu. + +![portal_menu](../static/description/portal_menu.png) + +When selecting this new item, partner has the possibility to see, some indicators regarding contributions. + +![portal_form](../static/description/portal_form.png) diff --git a/vcp_portal/static/description/index.html b/vcp_portal/static/description/index.html new file mode 100644 index 0000000..cbc57c4 --- /dev/null +++ b/vcp_portal/static/description/index.html @@ -0,0 +1,423 @@ + + + + + +Vcp - Portal + + + +
+

Vcp - Portal

+ + +

Beta License: AGPL-3 OCA/version-control-platform Translate me on Weblate Try me on Runboat

+

This module extends the functionality of portal module, when vcp +module is installed.

+

It adds a new entry in the partner portal menu.

+

portal_menu

+

When selecting this new item, partner has the possibility to see, some +indicators regarding contributions.

+

portal_form

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Dixmit
  • +
  • GRAP
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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/version-control-platform project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/vcp_portal/static/description/portal_menu.png b/vcp_portal/static/description/portal_menu.png new file mode 100644 index 0000000..ad3e358 Binary files /dev/null and b/vcp_portal/static/description/portal_menu.png differ diff --git a/vcp/static/src/components/popover_tooltip/popover_tooltip.esm.js b/vcp_portal/static/src/components/popover_tooltip/popover_tooltip.esm.js similarity index 100% rename from vcp/static/src/components/popover_tooltip/popover_tooltip.esm.js rename to vcp_portal/static/src/components/popover_tooltip/popover_tooltip.esm.js diff --git a/vcp/static/src/components/popover_tooltip/popover_tooltip.xml b/vcp_portal/static/src/components/popover_tooltip/popover_tooltip.xml similarity index 100% rename from vcp/static/src/components/popover_tooltip/popover_tooltip.xml rename to vcp_portal/static/src/components/popover_tooltip/popover_tooltip.xml diff --git a/vcp/static/src/components/vcp_render/vcp_render.esm.js b/vcp_portal/static/src/components/vcp_render/vcp_render.esm.js similarity index 100% rename from vcp/static/src/components/vcp_render/vcp_render.esm.js rename to vcp_portal/static/src/components/vcp_render/vcp_render.esm.js diff --git a/vcp/static/src/components/vcp_render/vcp_render.scss b/vcp_portal/static/src/components/vcp_render/vcp_render.scss similarity index 100% rename from vcp/static/src/components/vcp_render/vcp_render.scss rename to vcp_portal/static/src/components/vcp_render/vcp_render.scss diff --git a/vcp/static/src/components/vcp_render/vcp_render.xml b/vcp_portal/static/src/components/vcp_render/vcp_render.xml similarity index 100% rename from vcp/static/src/components/vcp_render/vcp_render.xml rename to vcp_portal/static/src/components/vcp_render/vcp_render.xml diff --git a/vcp/static/tests/tours/portal.esm.js b/vcp_portal/static/tests/tours/portal.esm.js similarity index 100% rename from vcp/static/tests/tours/portal.esm.js rename to vcp_portal/static/tests/tours/portal.esm.js diff --git a/vcp/templates/templates.xml b/vcp_portal/templates/templates.xml similarity index 64% rename from vcp/templates/templates.xml rename to vcp_portal/templates/templates.xml index f1ec432..a02a163 100644 --- a/vcp/templates/templates.xml +++ b/vcp_portal/templates/templates.xml @@ -64,37 +64,4 @@ - diff --git a/vcp_portal/tests/__init__.py b/vcp_portal/tests/__init__.py new file mode 100644 index 0000000..4814a87 --- /dev/null +++ b/vcp_portal/tests/__init__.py @@ -0,0 +1 @@ +from . import test_vcp_portal diff --git a/vcp_portal/tests/test_vcp_portal.py b/vcp_portal/tests/test_vcp_portal.py new file mode 100644 index 0000000..d55e6d1 --- /dev/null +++ b/vcp_portal/tests/test_vcp_portal.py @@ -0,0 +1,13 @@ +# Copyright 2026 Dixmit +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + + +from odoo.tests import tagged + +from odoo.addons.vcp.tests.test_base import TestBase + + +@tagged("post_install", "-at_install") +class TestVCPPortal(TestBase): + def test_01_portal_load_tour(self): + self.start_tour("/", "portal_load_contributors_github", login="portal") diff --git a/vcp_website/README.rst b/vcp_website/README.rst new file mode 100644 index 0000000..09c8f79 --- /dev/null +++ b/vcp_website/README.rst @@ -0,0 +1,73 @@ +============= +Vcp - Website +============= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:0471d7839f1265a582540c4f4e8dd6b37fb02dcc94fc7ae9c1bf9474f8466efc + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fversion--control--platform-lightgray.png?logo=github + :target: https://github.com/OCA/version-control-platform/tree/18.0/vcp_website + :alt: OCA/version-control-platform +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/version-control-platform-18-0/version-control-platform-18-0-vcp_website + :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/version-control-platform&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module is a technical glue module, installed when ``website`` and +``vcp`` modules are installed. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Dixmit +* GRAP + +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/version-control-platform `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/vcp_website/__init__.py b/vcp_website/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/vcp_website/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/vcp_website/__manifest__.py b/vcp_website/__manifest__.py new file mode 100644 index 0000000..7df0338 --- /dev/null +++ b/vcp_website/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2026 GRAP +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Vcp - Website", + "summary": "Glue module between Virtual Control Platform and Website", + "version": "18.0.1.0.0", + "license": "AGPL-3", + "author": "Dixmit,GRAP,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/version-control-platform", + "depends": ["vcp", "website"], + "data": [], + "demo": [], + "auto_install": True, +} diff --git a/vcp_website/i18n/fr.po b/vcp_website/i18n/fr.po new file mode 100644 index 0000000..c28badf --- /dev/null +++ b/vcp_website/i18n/fr.po @@ -0,0 +1,20 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * vcp_website +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: vcp_website +#: model:ir.model,name:vcp_website.model_res_partner +msgid "Contact" +msgstr "Contact" diff --git a/vcp_website/models/__init__.py b/vcp_website/models/__init__.py new file mode 100644 index 0000000..91fed54 --- /dev/null +++ b/vcp_website/models/__init__.py @@ -0,0 +1 @@ +from . import res_partner diff --git a/vcp_website/models/res_partner.py b/vcp_website/models/res_partner.py new file mode 100644 index 0000000..e4a69ef --- /dev/null +++ b/vcp_website/models/res_partner.py @@ -0,0 +1,14 @@ +# Copyright 2026 Dixmit +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + + +from odoo import models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + def _get_contributor_url(self): + if self.is_published and self.website_url: + return self.website_url + return super()._get_contributor_url() diff --git a/vcp_website/pyproject.toml b/vcp_website/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/vcp_website/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/vcp_website/readme/DESCRIPTION.md b/vcp_website/readme/DESCRIPTION.md new file mode 100644 index 0000000..24d3a63 --- /dev/null +++ b/vcp_website/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module is a technical glue module, +installed when `website` and `vcp` modules are installed. diff --git a/vcp_website/static/description/index.html b/vcp_website/static/description/index.html new file mode 100644 index 0000000..e882a72 --- /dev/null +++ b/vcp_website/static/description/index.html @@ -0,0 +1,418 @@ + + + + + +Vcp - Website + + + +
+

Vcp - Website

+ + +

Beta License: AGPL-3 OCA/version-control-platform Translate me on Weblate Try me on Runboat

+

This module is a technical glue module, installed when website and +vcp modules are installed.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Dixmit
  • +
  • GRAP
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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/version-control-platform project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/vcp_website_partner/README.rst b/vcp_website_partner/README.rst new file mode 100644 index 0000000..a1689d7 --- /dev/null +++ b/vcp_website_partner/README.rst @@ -0,0 +1,80 @@ +===================== +Vcp - Website Partner +===================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:0471d7839f1265a582540c4f4e8dd6b37fb02dcc94fc7ae9c1bf9474f8466efc + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fversion--control--platform-lightgray.png?logo=github + :target: https://github.com/OCA/version-control-platform/tree/18.0/vcp_website_partner + :alt: OCA/version-control-platform +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/version-control-platform-18-0/version-control-platform-18-0-vcp_website_partner + :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/version-control-platform&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of ``website_partner`` module, +when ``vcp`` module is installed. + +It adds on partner website form view, some indicators regarding +contributions. + +|website_partner_form| + +.. |website_partner_form| image:: https://raw.githubusercontent.com/OCA/version-control-platform/18.0/vcp_website_partner/static/description/website_partner_form.png + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Dixmit +* GRAP + +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/version-control-platform `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/vcp_website_partner/__init__.py b/vcp_website_partner/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/vcp_website_partner/__manifest__.py b/vcp_website_partner/__manifest__.py new file mode 100644 index 0000000..3726118 --- /dev/null +++ b/vcp_website_partner/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2026 GRAP +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Vcp - Website Partner", + "summary": "Glue module between Virtual Control Platform and Website Partner", + "version": "18.0.1.0.0", + "license": "AGPL-3", + "author": "Dixmit,GRAP,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/version-control-platform", + "depends": ["vcp", "website_partner"], + "data": [ + "templates/templates.xml", + ], + "demo": [], + "auto_install": True, +} diff --git a/vcp_website_partner/i18n/fr.po b/vcp_website_partner/i18n/fr.po new file mode 100644 index 0000000..74ed903 --- /dev/null +++ b/vcp_website_partner/i18n/fr.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * vcp_website_partner +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: vcp_website_partner +#: model_terms:ir.ui.view,arch_db:vcp_website_partner.partner_detail +msgid "Comments" +msgstr "Commentaires" + +#. module: vcp_website_partner +#: model_terms:ir.ui.view,arch_db:vcp_website_partner.partner_detail +msgid "Created Requests" +msgstr "Requêtes créées" + +#. module: vcp_website_partner +#: model_terms:ir.ui.view,arch_db:vcp_website_partner.partner_detail +msgid "Merged Requests" +msgstr "Requêtes fusionnées" + +#. module: vcp_website_partner +#: model_terms:ir.ui.view,arch_db:vcp_website_partner.partner_detail +msgid "Reviews" +msgstr "Revues" diff --git a/vcp_website_partner/pyproject.toml b/vcp_website_partner/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/vcp_website_partner/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/vcp_website_partner/readme/DESCRIPTION.md b/vcp_website_partner/readme/DESCRIPTION.md new file mode 100644 index 0000000..79a8b60 --- /dev/null +++ b/vcp_website_partner/readme/DESCRIPTION.md @@ -0,0 +1,6 @@ +This module extends the functionality of `website_partner` module, +when `vcp` module is installed. + +It adds on partner website form view, some indicators regarding contributions. + +![website_partner_form](../static/description/website_partner_form.png) diff --git a/vcp_website_partner/static/description/index.html b/vcp_website_partner/static/description/index.html new file mode 100644 index 0000000..5fbbbdc --- /dev/null +++ b/vcp_website_partner/static/description/index.html @@ -0,0 +1,421 @@ + + + + + +Vcp - Website Partner + + + +
+

Vcp - Website Partner

+ + +

Beta License: AGPL-3 OCA/version-control-platform Translate me on Weblate Try me on Runboat

+

This module extends the functionality of website_partner module, +when vcp module is installed.

+

It adds on partner website form view, some indicators regarding +contributions.

+

website_partner_form

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Dixmit
  • +
  • GRAP
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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/version-control-platform project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/vcp_website_partner/static/description/website_partner_form.png b/vcp_website_partner/static/description/website_partner_form.png new file mode 100644 index 0000000..ad3e358 Binary files /dev/null and b/vcp_website_partner/static/description/website_partner_form.png differ diff --git a/vcp_website_partner/templates/templates.xml b/vcp_website_partner/templates/templates.xml new file mode 100644 index 0000000..34ebaeb --- /dev/null +++ b/vcp_website_partner/templates/templates.xml @@ -0,0 +1,36 @@ + + + +