Browse Source

[ADD] modules

16.0
RemiFr82 9 months ago
parent
commit
5353a3d9e8
  1. 147
      .gitignore
  2. 1
      appointment_event/__init__.py
  3. 36
      appointment_event/__manifest__.py
  4. 0
      appointment_event/models/__init__.py
  5. 1
      appointment_sale/__init__.py
  6. 36
      appointment_sale/__manifest__.py
  7. 0
      appointment_sale/models/__init__.py
  8. 1
      website_appointment_multi/__init__.py
  9. 38
      website_appointment_multi/__manifest__.py
  10. 1
      website_appointment_multi/models/__init__.py
  11. 6
      website_appointment_multi/models/appointment_type.py
  12. 15
      website_appointment_multi/views/appointment_type.xml

147
.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

1
appointment_event/__init__.py

@ -0,0 +1 @@
from . import models

36
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",
}

0
appointment_event/models/__init__.py

1
appointment_sale/__init__.py

@ -0,0 +1 @@
from . import models

36
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",
}

0
appointment_sale/models/__init__.py

1
website_appointment_multi/__init__.py

@ -0,0 +1 @@
from . import models

38
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",
}

1
website_appointment_multi/models/__init__.py

@ -0,0 +1 @@
from . import appointment_type

6
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"]

15
website_appointment_multi/views/appointment_type.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="appointment_type_view_form_inherit_website_multi" model="ir.ui.view">
<field name="name">appointment.type.view.form.inherit</field>
<field name="model">appointment.type</field>
<field name="inherit_id" ref="appointment.appointment_type_view_form" />
<field name="arch" type="xml">
<field name="staff_user_count" position="before">
<field name="website_id" options="{'no_create': True}" groups="website.group_multi_website" />
</field>
</field>
</record>
</odoo>
Loading…
Cancel
Save