Browse Source

Dec 21: [FIX] Bug fixed 'hotel_management_odoo'

pull/361/head
Cybrosys Technologies 4 months ago
parent
commit
50b27cb514
  1. 2
      hotel_management_odoo/__manifest__.py
  2. 8
      hotel_management_odoo/doc/RELEASE_NOTES.md
  3. 6
      hotel_management_odoo/models/room_booking_line.py

2
hotel_management_odoo/__manifest__.py

@ -21,7 +21,7 @@
###############################################################################
{
'name': 'Hotel Management',
'version': '18.0.1.1.0',
'version': '18.0.1.1.1',
'category': 'Industries',
'summary': """A complete Hotel Management System that cover all areas of
Hotel services""" ,

8
hotel_management_odoo/doc/RELEASE_NOTES.md

@ -5,8 +5,12 @@
#### ADD
- Initial commit for Hotel Management
#### 11.12.2024
#### Version 18.0.1.1.0
#### UPDT
- Fixed the issue Room reservation based on check in and check out date.
- Fixed the issue Room reservation based on check in and check out date.
#### 19.12.2024
#### Version 18.0.1.1.1
#### UPDT
- The key name has been updated based on the latest addons.

6
hotel_management_odoo/models/room_booking_line.py

@ -111,8 +111,10 @@ class RoomBookingLine(models.Model):
for line in self:
base_line = line._prepare_base_line_for_taxes_computation()
self.env['account.tax']._add_tax_details_in_base_line(base_line, self.env.company)
line.price_subtotal = base_line['tax_details']['total_excluded_currency']
line.price_total = base_line['tax_details']['total_included_currency']
line.price_subtotal = base_line['tax_details']['raw_total_excluded_currency']
print("total_excluded_currency",line.price_subtotal)
line.price_total = base_line['tax_details']['raw_total_included_currency']
print("total_included_currency",line.price_total)
line.price_tax = line.price_total - line.price_subtotal
if self.env.context.get('import_file',
False) and not self.env.user. \

Loading…
Cancel
Save