添加功能

This commit is contained in:
李鹏宇
2026-02-05 18:38:28 +08:00
parent 08b2734687
commit b761f427ff
+1 -1
View File
@@ -16,7 +16,7 @@ class RoomBooking(models.Model):
_description = "Room Booking"
_order = "start_datetime desc, id"
name = fields.Char(string="标题", required=True, compute="_compute_name", store=True)
name = fields.Char(string="标题", compute="_compute_name", store=True)
code = fields.Char(string="流水号", default=lambda self: self.env['ir.sequence'].next_by_code('room_booking_approval_code'))
room_id = fields.Many2one("room.room", string="Room", required=True, ondelete="cascade",
group_expand="_read_group_room_id", tracking=4)