mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_l10n_es: fix domain in compute creation ses communication
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user