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

[14.0] pms website sale #242

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
f85d97d
[ADD] pms_website_sale
carmenbianca Jul 19, 2023
4c85ff3
[ADD] pms_w_s: rooms controller, templates and tests
robinkeunen Aug 11, 2023
9ef6974
[ADD] pms_w_s: booking page and controller
robinkeunen Aug 14, 2023
af9ff6e
[IMP] pms_w_s: /rooms templates
robinkeunen Aug 14, 2023
85080dd
[IMP] pms_w_s: use BookingEngineParser in /rooms
robinkeunen Aug 16, 2023
9360f0c
[FIX] pms_w_s: simple date picker and filters
remytms Aug 16, 2023
1f93453
[ADD] pms_w_s: /booking/address form
robinkeunen Aug 16, 2023
94fe12d
[IMP] pms_w_s: rooms sorting
remytms Aug 17, 2023
8148cd8
[IMP] pms_w_s: rooms date search
remytms Aug 17, 2023
60490e3
[FIX] pms_w_s: rooms price sorting
remytms Aug 17, 2023
8dd42eb
[IMP] pms_w_s: base mechanism to submit room booking
remytms Aug 17, 2023
8fb41d3
[FIX] pms_w_s: rooms tests
remytms Aug 17, 2023
07e6fa5
[ADD] pms_w_s: persist parser and book rooms
remytms Aug 22, 2023
4387ca0
[REF] pms_w_s: reorganise unit tests
robinkeunen Aug 22, 2023
4a6ef84
[ADD] pms_w_s: payment pages
robinkeunen Aug 22, 2023
2f1e1ad
[FIX] pms_w_s: various parser fixes
remytms Aug 22, 2023
5d70da0
[ADD] pms_w_s: delete item in booking page
remytms Aug 22, 2023
eea2793
[FIX] pms_w_s: parser: getting partner from id
remytms Aug 22, 2023
0f27c16
[ADD] pms_w_s: booking: show total amount and back button
remytms Aug 23, 2023
9ecb76d
[ADD] pms_w_s: errors management
remytms Aug 23, 2023
08d7a16
[IMP] pmw_w_s: remove is_published
robinkeunen Aug 29, 2023
5951821
[IMP] pws_w_s: improve room sort function
robinkeunen Aug 29, 2023
adb49eb
[IMP] pms_w_s: process online payment
robinkeunen Aug 31, 2023
fac73ed
[IMP] pms_w_s: address validation
remytms Aug 31, 2023
992202c
[ADD] pms_w_s: booking/extra_info
remytms Sep 4, 2023
1d6e992
[FIX] pms_w_s: tests
remytms Sep 7, 2023
98c0676
[IMP] pms_w_s: error management and code readability
remytms Sep 13, 2023
a0a1f37
[FIX] pms_w_s: fix price for rooms
remytms Sep 13, 2023
b965708
[ADD] pms_w_s: warn if daterange is different
remytms Sep 14, 2023
1a88cdd
[FIX] pms_w_s: log form error as debug msg
remytms Sep 14, 2023
72b47d4
[IMP] pms_w_s: remove unused functions
remytms Sep 14, 2023
56b8e9d
[FIX] pms_w_s: prefix routes to avoid conflict
remytms Sep 14, 2023
37b6e97
[ADD] pms_w_s: form submission /booking
remytms Sep 14, 2023
a6cb869
[IMP] pms_w_s: process failed payments
robinkeunen Sep 14, 2023
d9f9ed0
[IMP] pms_w_s: create partner in booking parser
robinkeunen Sep 15, 2023
87d2dc9
[FIX] pms_w_s: room route
robinkeunen Sep 15, 2023
c664d85
[IMP] pms_w_s: catch availability errors
robinkeunen Sep 19, 2023
50a4f78
[REF] pmw_w_s: routes on top of class
robinkeunen Sep 19, 2023
604229a
[REF] pms_ws: split routes from processor
robinkeunen Sep 19, 2023
f9c8339
[ADD] pms_w_s: rooms list design
remytms Sep 19, 2023
ddb7532
[IMP] pms_w_s: design booking process pages
remytms Sep 20, 2023
418e4e5
[CHG] pms_w_s: rename template file and errors in page /booking
remytms Sep 20, 2023
c87acb0
[FIX] pms_w_s: tests for deleting room in booking
remytms Sep 20, 2023
d6c5275
[FIX] pms_w_s: booking delete button alignement
remytms Sep 20, 2023
bc1d26e
[FIX] pms_w_s: availability redirection error
remytms Sep 21, 2023
cf76eed
[FIX] pms_w_s: partner creation
remytms Sep 21, 2023
f024454
[IMP] pmw_w_s: tokenize /booking/success
robinkeunen Sep 21, 2023
307dd40
[REF] pms_w_s: prefix functions w/ http verb
robinkeunen Sep 21, 2023
037b9fe
[FIX] pms_w_s: raise error at partner creation
remytms Sep 21, 2023
ad25221
[FIX] pms_w_s: AvailabilityError
remytms Sep 25, 2023
3b565a0
[FIX] pms_w_s: fix booking flow and notes
remytms Sep 26, 2023
34a8b38
[FIX] pms_w_s: rooms list images and reword
remytms Sep 26, 2023
4907396
[FIX] pms_w_s: center text when no rooms available
remytms Sep 27, 2023
39528a5
[ADD] pmw_w_s: terms and conditions
robinkeunen Sep 28, 2023
d6e5413
[ADD] pms_w_s: info about tourist tax
remytms Sep 28, 2023
4fd5079
[FIX] pms_w_s: order minimum 1 room
remytms Sep 28, 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
1 change: 0 additions & 1 deletion pms/models/pms_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ class PmsProperty(models.Model):
copy=False,
comodel_name="res.users",
ondelete="restrict",
tracking=True,
)
member_ids = fields.One2many(
string="Team Members",
Expand Down
2 changes: 2 additions & 0 deletions pms/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def _compute_list_price(self):
for record in self:
pms_property_id = (
self.env.context.get("property")
# FIXME: IndexError when get_active_property_ids() returns an
# empty recordset.
or self.env.user.get_active_property_ids()[0]
)
record.list_price = self.env["ir.pms.property"].get_field_value(
Expand Down
72 changes: 72 additions & 0 deletions pms_website_sale/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
================
PMS Website Sale
================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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-oca%2Fpms-lightgray.png?logo=github
:target: https://github.com/oca/pms/tree/14.0/pms_website_sale
:alt: oca/pms

|badge1| |badge2| |badge3|

Book and pay for hotel reservations online.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/oca/pms/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/oca/pms/issues/new?body=module:%20pms_website_sale%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
~~~~~~~

* Coop IT Easy SC

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

* `Coop IT Easy SC <https://coopiteasy.be>`_:

* Carmen Bianca BAKKER
* Robin KEUNEN


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

.. |maintainer-carmenbianca| image:: https://github.com/carmenbianca.png?size=40px
:target: https://github.com/carmenbianca
:alt: carmenbianca
.. |maintainer-robinkeunen| image:: https://github.com/robinkeunen.png?size=40px
:target: https://github.com/robinkeunen
:alt: robinkeunen

Current maintainers:

|maintainer-carmenbianca| |maintainer-robinkeunen|

This module is part of the `oca/pms <https://github.com/oca/pms/tree/14.0/pms_website_sale>`_ project on GitHub.

You are welcome to contribute.
7 changes: 7 additions & 0 deletions pms_website_sale/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

from . import controllers
from . import models
from . import wizards
42 changes: 42 additions & 0 deletions pms_website_sale/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

{
"name": "PMS Website Sale",
"summary": """
Book and pay for hotel reservations online.""",
"version": "14.0.1.0.0",
"category": "E-commerce",
"website": "https://github.com/OCA/pms",
"author": "Coop IT Easy SC, Odoo Community Association (OCA)",
"maintainers": ["carmenbianca", "robinkeunen", "remytms"],
"license": "AGPL-3",
"application": False,
"depends": [
"payment",
"pms",
# todo remove website_sale dependency
# We're only using a _portion_ of website_sale for our functionality.
# payments can be dealt with sepraratly, other minor things depend on it
"website_sale",
"website_legal_page",
],
"excludes": [],
"data": [
"security/ir.model.access.csv",
"security/pms_website_sale.xml",
"data/data.xml",
"views/pms_room_type_views.xml",
"templates/pms_assets_templates.xml",
"templates/pms_common_templates.xml",
"templates/pms_rooms_list_templates.xml",
"templates/pms_room_type_templates.xml",
"templates/pms_review_booking_templates.xml",
"templates/pms_extra_info_templates.xml",
"templates/pms_address_templates.xml",
"templates/pms_booking_payment_templates.xml",
],
"demo": [],
"qweb": [],
}
6 changes: 6 additions & 0 deletions pms_website_sale/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

from . import booking_controller
from . import room_controller
Loading
Loading