[FIX]pms_l10n_es: fix domain in compute creation ses communication

This commit is contained in:
Darío Lodeiros
2024-09-14 20:00:18 +02:00
parent be99edc52a
commit b8ec7f47b3

View File

@@ -81,9 +81,8 @@ class PmsReservation(models.Model):
self.create_communication(
reservation.id, DELETE_OPERATION_CODE, "RH"
)
elif (
vals["state"] != "cancel"
and last_communication.operation == DELETE_OPERATION_CODE
elif vals["state"] != "cancel" and (
last_communication.operation == DELETE_OPERATION_CODE
or not last_communication
):
self.create_communication(