Skip to content

Commit

Permalink
[ADD] shopinvader_app_demo: init
Browse files Browse the repository at this point in the history
  • Loading branch information
AnizR committed Jun 7, 2023
1 parent e5ea5df commit 0a3dab1
Show file tree
Hide file tree
Showing 13 changed files with 559 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# generated from manifests external_dependencies
fastapi
6 changes: 6 additions & 0 deletions setup/shopinvader_app_demo/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
65 changes: 65 additions & 0 deletions shopinvader_app_demo/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
====================
Shopinvader App Demo
====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github
:target: https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_app_demo
:alt: shopinvader/odoo-shopinvader

|badge1| |badge2| |badge3|

This module allows you to create a demo shopinvader application.

**Table of contents**

.. contents::
:local:

Changelog
=========

16.0.1.0.0 (2023-06-07)
~~~~~~~~~~~~~~~~~~~~~~~

* [ADD] add shopinvader_assortment addon

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/shopinvader/odoo-shopinvader/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/shopinvader/odoo-shopinvader/issues/new?body=module:%20shopinvader_assortment%0Aversion:%2014.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
~~~~~~~

* ACSONE SA/NV

Contributors
~~~~~~~~~~~~

* Zina Rasoamanana [email protected] (https://www.acsone.eu)

Maintainers
~~~~~~~~~~~

This module is part of the `shopinvader/odoo-shopinvader <https://github.com/shopinvader/odoo-shopinvader/tree/14.0/shopinvader_assortment>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions shopinvader_app_demo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions shopinvader_app_demo/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2023 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Shopinvader App Demo",
"summary": """
Adds a demo application on fastapi endpoint for a
demo shopinvader application that takes every router
""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV",
"website": "https://github.com/shopinvader/odoo-shopinvader",
"depends": ["fastapi"],
"external_dependencies": {"python": ["fastapi"]},
"data": [],
"demo": [],
}
1 change: 1 addition & 0 deletions shopinvader_app_demo/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import fastapi_endpoint
28 changes: 28 additions & 0 deletions shopinvader_app_demo/models/fastapi_endpoint.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2023 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from typing import List

from fastapi import APIRouter

from odoo import api, fields, models


class FastapiEndpoint(models.Model):

_inherit = "fastapi.endpoint"

app: str = fields.Selection(
selection_add=[("shopinvader_demo", "Shopinvader Demo Endpoint")],
ondelete={"shopinvader_demo": "shopinvader_demo"},
)

@api.model
def _get_fastapi_routers(self):
if self.app == "shopinvader_demo":
return self._get_shopinvader_demo_fastapi_routers()
return super().get_fastapi_routers()

@api.model
def _get_shopinvader_demo_fastapi_routers(self) -> List[APIRouter]:
return []
1 change: 1 addition & 0 deletions shopinvader_app_demo/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Zina Rasoamanana [email protected] (https://www.acsone.eu)
1 change: 1 addition & 0 deletions shopinvader_app_demo/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows you to create a demo shopinvader application.
4 changes: 4 additions & 0 deletions shopinvader_app_demo/readme/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
16.0.1.0.0 (2023-06-07)
~~~~~~~~~~~~~~~~~~~~~~~

* [ADD] add shopinvader_assortment addon
Binary file added shopinvader_app_demo/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0a3dab1

Please sign in to comment.