mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: partner service error when no checkouts
This commit is contained in:
committed by
Darío Lodeiros
parent
bc737c93ce
commit
b95cc10517
@@ -70,6 +70,7 @@ class PmsPartnerService(Component):
|
||||
checkouts = (
|
||||
self.env["pms.checkin.partner"]
|
||||
.search([("partner_id.id", "=", partner.id)])
|
||||
.filtered(lambda x: x.checkout)
|
||||
.mapped("checkout")
|
||||
)
|
||||
result_partners.append(
|
||||
|
||||
Reference in New Issue
Block a user