[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( self.create_communication(
reservation.id, DELETE_OPERATION_CODE, "RH" reservation.id, DELETE_OPERATION_CODE, "RH"
) )
elif ( elif vals["state"] != "cancel" and (
vals["state"] != "cancel" last_communication.operation == DELETE_OPERATION_CODE
and last_communication.operation == DELETE_OPERATION_CODE
or not last_communication or not last_communication
): ):
self.create_communication( self.create_communication(