From fa211011ec31bc6bf72418d572c45b69b8e4baaa Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 13 Jan 2026 13:12:03 +0000 Subject: [PATCH] [FIX] stay: don't display construction stays in fire report --- stay/models/stay.py | 1 + stay/wizard/stay_fire_print.py | 1 + 2 files changed, 2 insertions(+) diff --git a/stay/models/stay.py b/stay/models/stay.py index f0ce0646..0ab879cb 100644 --- a/stay/models/stay.py +++ b/stay/models/stay.py @@ -977,6 +977,7 @@ class StayRoomAssign(models.Model): partner_id = fields.Many2one(related="stay_id.partner_id", store=True) partner_name = fields.Text(related="stay_id.partner_name", store=True) company_id = fields.Many2one(related="stay_id.company_id", store=True, index=True) + construction = fields.Boolean(related="stay_id.construction", store=True) # for filter my_stay_group = fields.Boolean( compute="_compute_my_stay_group", search="_search_my_stay_group" diff --git a/stay/wizard/stay_fire_print.py b/stay/wizard/stay_fire_print.py index 03e6cf11..485081b4 100644 --- a/stay/wizard/stay_fire_print.py +++ b/stay/wizard/stay_fire_print.py @@ -68,6 +68,7 @@ def _report_fire_data(self): ("arrival_date", "<=", self.date), ("departure_date", ">", self.date), ("room_id", "=", room.id), + ("construction", "=", False), ] ) guest_qty = sum([assign.guest_qty for assign in assigns])