diff --git a/.gitignore b/.gitignore index 68bc17f..ec1eee4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,36 +1,29 @@ # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] -*$py.class +/.venv +/.pytest_cache # C extensions *.so # Distribution / packaging .Python +env/ +bin/ build/ develop-eggs/ dist/ -downloads/ +dist_wo_pbr/ eggs/ -.eggs/ -lib/ lib64/ parts/ sdist/ var/ -wheels/ -share/python-wheels/ *.egg-info/ .installed.cfg *.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec +*.eggs # Installer logs pip-log.txt @@ -39,122 +32,50 @@ pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ -.nox/ .coverage -.coverage.* +.coverage\.* +.coverage\_* .cache nosetests.xml coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ -cover/ # Translations *.mo -*.pot -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal +# Pycharm +.idea -# Flask stuff: -instance/ -.webassets-cache +# Eclipse +.settings -# Scrapy stuff: -.scrapy +# Visual Studio cache/options directory +.vs/ +.vscode -# Sphinx documentation -docs/_build/ +# OSX Files +.DS_Store -# PyBuilder -.pybuilder/ -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -# For a library or package, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# .python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# poetry -# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. -# This is especially recommended for binary packages to ensure reproducibility, and is more -# commonly ignored for libraries. -# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control -#poetry.lock - -# pdm -# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. -#pdm.lock -# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it -# in version control. -# https://pdm.fming.dev/#use-with-ide -.pdm.toml - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ +# Django stuff: +*.log -# Spyder project settings -.spyderproject -.spyproject +# Mr Developer +.mr.developer.cfg +.project +.pydevproject -# Rope project settings +# Rope .ropeproject -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ +# Sphinx documentation +docs/_build/ -# pytype static type analyzer -.pytype/ +# Backup files +*~ +*.swp -# Cython debug symbols -cython_debug/ +# OCA rules +!static/lib/ -# PyCharm -# JetBrains specific template is maintained in a separate JetBrains.gitignore that can -# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore -# and can be added to the global gitignore or merged into this file. For a more nuclear -# option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +# Auto-generated +ChangeLog +.pre-commit-config-local.yaml diff --git a/appointment_event/__init__.py b/appointment_event/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/appointment_event/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/appointment_event/__manifest__.py b/appointment_event/__manifest__.py new file mode 100644 index 0000000..0593ad0 --- /dev/null +++ b/appointment_event/__manifest__.py @@ -0,0 +1,36 @@ +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +{ + "name": "Appointment to event", + "version": "1.0.0", + "summary": """ + On appointment booking, it creates an event based on a template (with correspondig date and times). + """, + "description": """ + TO WRITE + """, + "author": "RemiFr82", + "contributors": "", + "website": "https://remifr82.me", + "license": "LGPL-3", + "category": "Events", + # "price": 0, + # "currency": "EUR", + "application": False, + "installable": True, + "auto_install": False, + "pre_init_hook": "", + "post_init_hook": "", + "uninstall_hook": "", + "excludes": [], + "external_dependencies": [], + "depends": [ + "", + ], + "data": [], + "css": [], + "images": [], + "js": [], + "test": [], + "demo": [], + "maintainer": "RemiFr82", +} diff --git a/appointment_event/models/__init__.py b/appointment_event/models/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/appointment_sale/__init__.py b/appointment_sale/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/appointment_sale/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/appointment_sale/__manifest__.py b/appointment_sale/__manifest__.py new file mode 100644 index 0000000..cee6440 --- /dev/null +++ b/appointment_sale/__manifest__.py @@ -0,0 +1,36 @@ +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +{ + "name": "Appointment sale", + "version": "1.0.0", + "summary": """ + On appointment booking, it creates a sales order based on a given template. + """, + "description": """ + TO WRITE + """, + "author": "RemiFr82", + "contributors": "", + "website": "https://remifr82.me", + "license": "LGPL-3", + "category": "Events", + # "price": 0, + # "currency": "EUR", + "application": False, + "installable": True, + "auto_install": False, + "pre_init_hook": "", + "post_init_hook": "", + "uninstall_hook": "", + "excludes": [], + "external_dependencies": [], + "depends": [ + "", + ], + "data": [], + "css": [], + "images": [], + "js": [], + "test": [], + "demo": [], + "maintainer": "RemiFr82", +} diff --git a/appointment_sale/models/__init__.py b/appointment_sale/models/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/website_appointment_multi/__init__.py b/website_appointment_multi/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/website_appointment_multi/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/website_appointment_multi/__manifest__.py b/website_appointment_multi/__manifest__.py new file mode 100644 index 0000000..df11a1d --- /dev/null +++ b/website_appointment_multi/__manifest__.py @@ -0,0 +1,38 @@ +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +{ + "name": "Website appointment multi", + "version": "1.0.0", + "summary": """ + You can choose on which website you publish your appointments types. + """, + "description": """ + TO WRITE + """, + "author": "RemiFr82", + "contributors": "", + "website": "https://remifr82.me", + "license": "LGPL-3", + "category": "Events", + # "price": 0, + # "currency": "EUR", + "application": False, + "installable": True, + "auto_install": False, + "pre_init_hook": "", + "post_init_hook": "", + "uninstall_hook": "", + "excludes": [], + "external_dependencies": [], + "depends": [ + "website_appointment", + ], + "data": [ + "views/appointment_type.xml", + ], + "css": [], + "images": [], + "js": [], + "test": [], + "demo": [], + "maintainer": "RemiFr82", +} diff --git a/website_appointment_multi/models/__init__.py b/website_appointment_multi/models/__init__.py new file mode 100644 index 0000000..1340b2f --- /dev/null +++ b/website_appointment_multi/models/__init__.py @@ -0,0 +1 @@ +from . import appointment_type diff --git a/website_appointment_multi/models/appointment_type.py b/website_appointment_multi/models/appointment_type.py new file mode 100644 index 0000000..c7d48f1 --- /dev/null +++ b/website_appointment_multi/models/appointment_type.py @@ -0,0 +1,6 @@ +from odoo import models, fields, api, _ + + +class AppointmentType(models.Model): + _name = "appointment.type" + _inherit = ["appointment.type", "website.published.multi.mixin"] diff --git a/website_appointment_multi/views/appointment_type.xml b/website_appointment_multi/views/appointment_type.xml new file mode 100644 index 0000000..c9998a7 --- /dev/null +++ b/website_appointment_multi/views/appointment_type.xml @@ -0,0 +1,15 @@ + + + + + appointment.type.view.form.inherit + appointment.type + + + + + + + + + \ No newline at end of file