mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_l10n_es: incomplete ses communications domain format
This commit is contained in:
@@ -95,7 +95,7 @@ class PmsCheckinPartner(models.Model):
|
|||||||
"pms.ses.communication"
|
"pms.ses.communication"
|
||||||
].search(
|
].search(
|
||||||
[
|
[
|
||||||
("reservation_id", "=", record.reservation_id),
|
("reservation_id", "=", record.reservation_id.id),
|
||||||
("entity", "=", "PV"),
|
("entity", "=", "PV"),
|
||||||
("operation", "=", CREATE_OPERATION_CODE),
|
("operation", "=", CREATE_OPERATION_CODE),
|
||||||
("state", "=", "incomplete"),
|
("state", "=", "incomplete"),
|
||||||
@@ -106,7 +106,7 @@ class PmsCheckinPartner(models.Model):
|
|||||||
"pms.ses.communication"
|
"pms.ses.communication"
|
||||||
].create(
|
].create(
|
||||||
{
|
{
|
||||||
"reservation_id": record.reservation_id,
|
"reservation_id": record.reservation_id.id,
|
||||||
"operation": CREATE_OPERATION_CODE,
|
"operation": CREATE_OPERATION_CODE,
|
||||||
"entity": "PV",
|
"entity": "PV",
|
||||||
"state": "incomplete",
|
"state": "incomplete",
|
||||||
@@ -116,8 +116,8 @@ class PmsCheckinPartner(models.Model):
|
|||||||
if (
|
if (
|
||||||
all(
|
all(
|
||||||
[
|
[
|
||||||
partner.state == "onboard"
|
checkin.state == "onboard"
|
||||||
for partner in record.reservation_id.checkin_partner_ids
|
for checkin in record.reservation_id.checkin_partner_ids
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
and len(record.reservation_id.checkin_partner_ids)
|
and len(record.reservation_id.checkin_partner_ids)
|
||||||
|
|||||||
Reference in New Issue
Block a user