OCA / vertical-hotel

Odoo for Hotel Management
https://odoo-community.org/project/13
GNU Affero General Public License v3.0
140 stars 254 forks source link

Trouble understanding `hotel.room.reservation.line` and `hotel_reservation.line` #106

Closed JayVora-SerpentCS closed 4 years ago

JayVora-SerpentCS commented 4 years ago

I’m getting to know the code, and have trouble understanding the difference between the models hotel.room.reservation.line and hotel_reservation.line.

from CoopIt easy @mclaeysb

vimalpatelserpentcs commented 4 years ago

I’m getting to know the code, and have trouble understanding the difference between the models hotel.room.reservation.line and hotel_reservation.line.

from CoopIt easy @mclaeysb

1. hotel_reservation.line : This model used in the hotel reservation, where you can select room category and based on that you can select a room ( Technically, this model is used in hotel.reservation as one2many(hotel_reservation.line)) Screenshot link: https://prnt.sc/tae8nt

2. hotel.room.reservation.line: Generally, we can say as room reservation movement/history tables, In Reservation Summary (Dashboard) the values come from hotel.room.reservation.line model and folio.room.line model. (Technically, When we booked any room from reservation then that room booking record create into the hotel.room.reservation.line models and record update/delete accordingly) Screenshot link: https://prnt.sc/taekgp