mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: num. services, amenities, round(discount), cancelation rule.
This commit is contained in:
committed by
Darío Lodeiros
parent
f661b67a4a
commit
c87c5153ef
@@ -266,10 +266,13 @@ class PmsFolioService(Component):
|
||||
allowedCheckout=reservation.allowed_checkout,
|
||||
splitted=reservation.splitted,
|
||||
priceTotal=reservation.price_room_services_set,
|
||||
servicesCount=len(
|
||||
# TODO: REVIEW IF THIS OR QTY OF EACH ONE
|
||||
servicesCount=sum(
|
||||
reservation.service_ids.filtered(
|
||||
|
||||
lambda x: not x.is_board_service
|
||||
)
|
||||
.mapped("product_qty")
|
||||
),
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user