Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16.0-MIG-hotel_restaurant #200

Open
wants to merge 84 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
9efe769
[ADD] Added modules for hotel management
SerpentCS May 18, 2012
d3e5919
[IMP] Improve the module
May 22, 2012
9b4e7d2
[IMP] Improve the report and wizard code
May 23, 2012
859f9f2
[FIX/REF]Fixed the issues given and refactored the code
May 25, 2012
25dc3fc
mark modules as unported to v8
gurneyalex Oct 17, 2014
6eff40d
[MOV] move addons out of __unported__ (they remain not installable)
sbidoul Oct 13, 2015
028cf9a
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
f094e20
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
383bfe0
[ADD]Migrate hotel restaurant module as per v10 standard.
KrishnaPrajapati-SerpentCS Jun 7, 2017
9e54d9b
Update __manifest__.py
JayVora-SerpentCS Oct 2, 2017
e6320c8
Update README.rst
JayVora-SerpentCS Oct 2, 2017
c2cd5e4
Update README.rst
JayVora-SerpentCS Oct 2, 2017
2f0ffdd
Update README.rst
JayVora-SerpentCS Oct 2, 2017
e7e569e
Create README.rst
JayVora-SerpentCS Oct 2, 2017
b7555dc
[REF]
JayVora-SerpentCS Oct 3, 2017
321ac08
[FIX]Fix the travis error in hotel.
KrishnaPrajapati-SerpentCS Oct 31, 2017
3e9023f
[MIG] hotel_restaurant: Migration to 11.0
KrishnaPrajapati-SerpentCS Apr 23, 2018
239ef3d
[FIX] travis & other improvements
serpentcs-dev1 Jul 26, 2018
fb38cf8
[IMP] minor changes
serpentcs-dev1 Jul 26, 2018
579654d
[IMP] cosmetic changes and manifest
serpentcs-dev1 Jul 26, 2018
1d49ef9
[IMP] manifest and readme
serpentcs-dev1 Jul 27, 2018
486b70e
[IMP] code level suggested improvements
serpentcs-dev1 Jul 27, 2018
5271c29
[IMP] maintained iteration & more meaningful object names
serpentcs-dev1 Jul 31, 2018
3a48a1e
Update translation files
oca-transbot Dec 9, 2018
5646b93
[MIG]hotel_restaurant:Migrate from v11 to v12.
dhruvitaSerpentCS Apr 2, 2019
f44e86f
[UPD] Update hotel_restaurant.pot
oca-travis Jul 16, 2019
6b95eff
Update translation files
oca-transbot Jul 20, 2019
495d750
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Oct 16, 2019
fdea73a
Added translation using Weblate (Portuguese (Brazil))
Nov 24, 2019
aabcdf7
Translated using Weblate (Portuguese (Brazil))
augustodinizl Dec 29, 2019
cb2ed44
Translated using Weblate (Portuguese (Brazil))
augustodinizl Dec 30, 2019
c6582b0
[FIX]hotel_reservation:Fix timezone issue from reservation email temp…
dhruvitaSerpentCS Jun 23, 2020
fd078c2
[UPD] Update hotel_restaurant.pot
oca-travis Jun 24, 2020
255be3d
Update translation files
oca-transbot Jun 24, 2020
4684457
[ADD] pre-commit config and fixes
mclaeysb Jun 16, 2020
9c0cefd
[UPD] Update hotel_restaurant.pot
oca-travis Jun 25, 2020
3d50dab
Update translation files
oca-transbot Jun 25, 2020
829351b
[MIG]hotel_restaurant:Migrated from v12 and v13.
dhruvitaSerpentCS Jul 7, 2020
e71ca6b
[IMP]hotel_restaurant:Fixed travis.
dhruvitaSerpentCS Sep 11, 2020
5b32746
[IMP]hotel_restaurant:Seperate files, improved field names.
dhruvitaSerpentCS Sep 18, 2020
9c03169
[IMP]hotel_restaurant:Improved code in restaurant.
dhruvitaSerpentCS Sep 23, 2020
04e0665
[IMP]hotel_restaurant:Improved variable name.
dhruvitaSerpentCS Sep 23, 2020
833eae8
[IMP]hotel_restaurant:Fixed Travis.
dhruvitaSerpentCS Sep 23, 2020
203338c
[IMP]hotel_restaurant:Oprtimised code and improved report.
dhruvitaSerpentCS Sep 23, 2020
039440d
[IMP]Improved reports.
dhruvitaSerpentCS Sep 24, 2020
83f4c8f
[IMP]hotel_restaurant:Improved README.rst.
dhruvitaSerpentCS Sep 24, 2020
c8d5080
[IMP]Improved README.rst
dhruvitaSerpentCS Sep 24, 2020
88e9dc5
[UPD] Update hotel_restaurant.pot
oca-travis Sep 25, 2020
995edce
Update translation files
oca-transbot Oct 24, 2020
f38ee3b
[IMP]Improved README.rst.
dhruvitaSerpentCS Oct 29, 2020
7d46619
[UPD] README.rst
OCA-git-bot Oct 29, 2020
7103548
[UPD] Update hotel_restaurant.pot
oca-travis Oct 29, 2020
67493ce
Update translation files
oca-transbot Oct 29, 2020
9a519db
[14.0][IMP] hotel_restaurant:run pre-commit.
maitripatel19 May 19, 2021
79dfb02
[14.0][ADD] hotel_restaurant: Migrated module.
maitripatel19 May 19, 2021
53785f9
[14.0][IMP] hotel_restaurant:Improve code.
maitripatel19 May 31, 2021
7ca86e8
[14.0][FIX] hotel_restaurant: Fixed comments.
maitripatel19 Jun 3, 2021
c579dac
[14.0][FIX] hotel_restaurant: Fixed comments.
maitripatel19 Jun 3, 2021
a359f68
[14.0][MIG] hotel_restaurant: Migrated to v14
Rajan-SerpentCS Aug 9, 2021
f14e9f3
[UPD] README.rst
OCA-git-bot Aug 12, 2021
8058c59
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
d2b2bd0
Added translation using Weblate (French)
abdawone Jun 4, 2022
99e8028
[UPD] Update hotel_restaurant.pot
oca-travis Jun 4, 2022
237f039
Update translation files
oca-transbot Jun 4, 2022
3879dc4
[15.0][MIG] hotel_restaurant
ShwetaSerpentCS Oct 3, 2022
0213a70
[UPD] README.rst
OCA-git-bot Apr 6, 2023
3f1b884
Added translation using Weblate (Italian)
mymage May 3, 2023
7c4eac1
Translated using Weblate (Italian)
mymage May 3, 2023
cb9c982
Translated using Weblate (Italian)
mymage May 3, 2023
9d8a69c
Translated using Weblate (Italian)
mymage May 9, 2023
c49afe9
Translated using Weblate (Italian)
mymage May 10, 2023
f199272
Translated using Weblate (Italian)
mymage May 11, 2023
16d217e
Translated using Weblate (Italian)
mymage May 12, 2023
1f742fe
Translated using Weblate (Italian)
francesco-ooops May 12, 2023
09a97f9
Translated using Weblate (Italian)
francesco-ooops May 12, 2023
20fb373
Translated using Weblate (Italian)
francesco-ooops May 16, 2023
1d163e1
Translated using Weblate (Italian)
francesco-ooops May 17, 2023
a9b319f
Translated using Weblate (Italian)
francesco-ooops Jul 10, 2023
1e0794a
Translated using Weblate (Italian)
francesco-ooops Jul 17, 2023
b1fa2df
[UPD] README.rst
OCA-git-bot Sep 3, 2023
8e5f93f
Translated using Weblate (Italian)
mymage Aug 22, 2023
1830b63
Update translation files
weblate Oct 9, 2023
f2ebb0f
[16.0][FIX] Travis
sachin-serpentcs Oct 11, 2023
ef3cae4
[16.0][MIG] hotel_restaurant
sachin-serpentcs Oct 11, 2023
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
23 changes: 23 additions & 0 deletions hotel_restaurant/.copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.14.2
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
dependency_installation_mode: PIP
generate_requirements_txt: true
github_check_license: true
github_ci_extra_env: {}
github_enable_codecov: true
github_enable_makepot: true
github_enable_stale_action: true
github_enforce_dev_status_compatibility: true
include_wkhtmltopdf: false
odoo_version: 16.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
rebel_module_groups: []
repo_description: "TODO: add repo description."
repo_name: vertical-hotel
repo_slug: vertical-hotel
repo_website: https://github.com/OCA/vertical-hotel
travis_apt_packages: []
travis_apt_sources: []
20 changes: 20 additions & 0 deletions hotel_restaurant/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Configuration for known file extensions
[*.{css,js,json,less,md,py,rst,sass,scss,xml,yaml,yml}]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{json,yml,yaml,rst,md}]
indent_size = 2

# Do not configure editor for libs and autogenerated content
[{*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst}]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = false
trim_trailing_whitespace = false
187 changes: 187 additions & 0 deletions hotel_restaurant/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
env:
browser: true
es6: true

# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
parserOptions:
ecmaVersion: 2019

overrides:
- files:
- "**/*.esm.js"
parserOptions:
sourceType: module

# Globals available in Odoo that shouldn't produce errorings
globals:
_: readonly
$: readonly
fuzzy: readonly
jQuery: readonly
moment: readonly
odoo: readonly
openerp: readonly
owl: readonly

# Styling is handled by Prettier, so we only need to enable AST rules;
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
rules:
accessor-pairs: warn
array-callback-return: warn
callback-return: warn
capitalized-comments:
- warn
- always
- ignoreConsecutiveComments: true
ignoreInlineComments: true
complexity:
- warn
- 15
constructor-super: warn
dot-notation: warn
eqeqeq: warn
global-require: warn
handle-callback-err: warn
id-blacklist: warn
id-match: warn
init-declarations: error
max-depth: warn
max-nested-callbacks: warn
max-statements-per-line: warn
no-alert: warn
no-array-constructor: warn
no-caller: warn
no-case-declarations: warn
no-class-assign: warn
no-cond-assign: error
no-const-assign: error
no-constant-condition: warn
no-control-regex: warn
no-debugger: error
no-delete-var: warn
no-div-regex: warn
no-dupe-args: error
no-dupe-class-members: error
no-dupe-keys: error
no-duplicate-case: error
no-duplicate-imports: error
no-else-return: warn
no-empty-character-class: warn
no-empty-function: error
no-empty-pattern: error
no-empty: warn
no-eq-null: error
no-eval: error
no-ex-assign: error
no-extend-native: warn
no-extra-bind: warn
no-extra-boolean-cast: warn
no-extra-label: warn
no-fallthrough: warn
no-func-assign: error
no-global-assign: error
no-implicit-coercion:
- warn
- allow: ["~"]
no-implicit-globals: warn
no-implied-eval: warn
no-inline-comments: warn
no-inner-declarations: warn
no-invalid-regexp: warn
no-irregular-whitespace: warn
no-iterator: warn
no-label-var: warn
no-labels: warn
no-lone-blocks: warn
no-lonely-if: error
no-mixed-requires: error
no-multi-str: warn
no-native-reassign: error
no-negated-condition: warn
no-negated-in-lhs: error
no-new-func: warn
no-new-object: warn
no-new-require: warn
no-new-symbol: warn
no-new-wrappers: warn
no-new: warn
no-obj-calls: warn
no-octal-escape: warn
no-octal: warn
no-param-reassign: warn
no-path-concat: warn
no-process-env: warn
no-process-exit: warn
no-proto: warn
no-prototype-builtins: warn
no-redeclare: warn
no-regex-spaces: warn
no-restricted-globals: warn
no-restricted-imports: warn
no-restricted-modules: warn
no-restricted-syntax: warn
no-return-assign: error
no-script-url: warn
no-self-assign: warn
no-self-compare: warn
no-sequences: warn
no-shadow-restricted-names: warn
no-shadow: warn
no-sparse-arrays: warn
no-sync: warn
no-this-before-super: warn
no-throw-literal: warn
no-undef-init: warn
no-undef: error
no-unmodified-loop-condition: warn
no-unneeded-ternary: error
no-unreachable: error
no-unsafe-finally: error
no-unused-expressions: error
no-unused-labels: error
no-unused-vars: error
no-use-before-define: error
no-useless-call: warn
no-useless-computed-key: warn
no-useless-concat: warn
no-useless-constructor: warn
no-useless-escape: warn
no-useless-rename: warn
no-void: warn
no-with: warn
operator-assignment: [error, always]
prefer-const: warn
radix: warn
require-yield: warn
sort-imports: warn
spaced-comment: [error, always]
strict: [error, function]
use-isnan: error
valid-jsdoc:
- warn
- prefer:
arg: param
argument: param
augments: extends
constructor: class
exception: throws
func: function
method: function
prop: property
return: returns
virtual: abstract
yield: yields
preferType:
array: Array
bool: Boolean
boolean: Boolean
number: Number
object: Object
str: String
string: String
requireParamDescription: false
requireReturn: false
requireReturnDescription: false
requireReturnType: false
valid-typeof: warn
yoda: warn
12 changes: 12 additions & 0 deletions hotel_restaurant/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
max-line-length = 88
max-complexity = 16
# B = bugbear
# B9 = bugbear opinionated (incl line length)
select = C,E,F,W,B,B9
# E203: whitespace before ':' (black behaviour)
# E501: flake8 line length (covered by bugbear B950)
# W503: line break before binary operator (black behaviour)
ignore = E203,E501,W503
per-file-ignores=
__init__.py:F401
35 changes: 35 additions & 0 deletions hotel_restaurant/.github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: pre-commit

on:
pull_request:
branches:
- "16.0*"
push:
branches:
- "16.0"
- "16.0-ocabot-*"

jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure --color=always
- name: Check that all files generated by pre-commit are in git
run: |
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
if [ "$newfiles" != "" ] ; then
echo "Please check-in the following files:"
echo "$newfiles"
exit 1
fi
69 changes: 69 additions & 0 deletions hotel_restaurant/.github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 12 * * 0"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Stale PRs and issues policy
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# General settings.
ascending: true
remove-stale-when-updated: true
# Pull Requests settings.
# 120+30 day stale policy for PRs
# * Except PRs marked as "no stale"
days-before-pr-stale: 120
days-before-pr-close: 30
exempt-pr-labels: "no stale"
stale-pr-label: "stale"
stale-pr-message: >
There hasn't been any activity on this pull request in the past 4 months, so
it has been marked as stale and it will be closed automatically if no
further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply
the "no stale" label.
# Issues settings.
# 180+30 day stale policy for open issues
# * Except Issues marked as "no stale"
days-before-issue-stale: 180
days-before-issue-close: 30
exempt-issue-labels: "no stale,needs more information"
stale-issue-label: "stale"
stale-issue-message: >
There hasn't been any activity on this issue in the past 6 months, so it has
been marked as stale and it will be closed automatically if no further
activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to
apply the "no stale" label.
# 15+30 day stale policy for issues pending more information
# * Issues that are pending more information
# * Except Issues marked as "no stale"
- name: Needs more information stale issues policy
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ascending: true
only-labels: "needs more information"
exempt-issue-labels: "no stale"
days-before-stale: 15
days-before-close: 30
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: true
stale-issue-label: "stale"
stale-issue-message: >
This issue needs more information and there hasn't been any activity
recently, so it has been marked as stale and it will be closed automatically
if no further activity occurs in the next 30 days.
If you think this is a mistake, please ask a PSC member to remove the "needs
more information" label.
Loading
Loading