diff --git a/hotel_management_odoo/doc/RELEASE_NOTES.md b/hotel_management_odoo/doc/RELEASE_NOTES.md index a6f979ece..eb2a52735 100644 --- a/hotel_management_odoo/doc/RELEASE_NOTES.md +++ b/hotel_management_odoo/doc/RELEASE_NOTES.md @@ -13,4 +13,9 @@ #### 19.12.2024 #### Version 18.0.1.1.1 #### UPDT -- The key name has been updated based on the latest addons. \ No newline at end of file +- The key name has been updated based on the latest addons. + +#### 09.06.2025 +#### Version 18.0.1.1.1 +#### UPDT +- Added copy=false in some fields of room_booking model \ No newline at end of file diff --git a/hotel_management_odoo/models/room_booking.py b/hotel_management_odoo/models/room_booking.py index d8177a91b..b5d400851 100644 --- a/hotel_management_odoo/models/room_booking.py +++ b/hotel_management_odoo/models/room_booking.py @@ -32,7 +32,7 @@ class RoomBooking(models.Model): _description = "Hotel Room Reservation" _inherit = ['mail.thread', 'mail.activity.mixin'] - name = fields.Char(string="Folio Number", readonly=True, index=True, + name = fields.Char(string="Folio Number", readonly=True, index=True, copy=False, default="New", help="Name of Folio") company_id = fields.Many2one('res.company', string="Company", help="Choose the Company", @@ -77,7 +77,7 @@ class RoomBooking(models.Model): help="Number of days which will automatically " "count from the check-in and check-out " "date.", ) - invoice_button_visible = fields.Boolean(string='Invoice Button Display', + invoice_button_visible = fields.Boolean(string='Invoice Button Display', copy=False, help="Invoice button will be " "visible if this button is " "True") @@ -86,7 +86,7 @@ class RoomBooking(models.Model): ('to_invoice', 'To Invoice'), ('invoiced', 'Invoiced'), ], string="Invoice Status", - help="Status of the Invoice", + help="Status of the Invoice",copy=False, default='no_invoice', tracking=True) hotel_invoice_id = fields.Many2one("account.move", string="Invoice", @@ -137,7 +137,7 @@ class RoomBooking(models.Model): ('cancel', 'Cancelled'), ('done', 'Done')], string='State', help="State of the Booking", - default='draft', tracking=True) + default='draft', tracking=True,copy=False,) user_id = fields.Many2one(comodel_name='res.partner', string="Invoice Address", compute='_compute_user_id',