mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms: fix again recompute boards to avoid importer error
This commit is contained in:
@@ -997,12 +997,12 @@ class PmsReservation(models.Model):
|
||||
]
|
||||
)
|
||||
# Avoid recalculating services if the boardservice has not changed
|
||||
# if (
|
||||
# old_board_lines
|
||||
# and reservation.board_service_room_id
|
||||
# == reservation._origin.board_service_room_id
|
||||
# ):
|
||||
# return
|
||||
if (
|
||||
old_board_lines
|
||||
and reservation.board_service_room_id
|
||||
== reservation._origin.board_service_room_id
|
||||
):
|
||||
return
|
||||
if reservation.board_service_room_id:
|
||||
board = self.env["pms.board.service.room.type"].browse(
|
||||
reservation.board_service_room_id.id
|
||||
|
||||
Reference in New Issue
Block a user