mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_api_rest: unique board_service_room_type by property
This commit is contained in:
@@ -36,13 +36,7 @@ class PmsBoardServiceService(Component):
|
||||
if board_services_search_param.pmsPropertyId:
|
||||
domain.extend(
|
||||
[
|
||||
"|",
|
||||
(
|
||||
"pms_property_ids",
|
||||
"in",
|
||||
board_services_search_param.pmsPropertyId,
|
||||
),
|
||||
("pms_property_ids", "=", False),
|
||||
("pms_property_id", "=", board_services_search_param.pmsPropertyId),
|
||||
]
|
||||
)
|
||||
|
||||
@@ -107,13 +101,7 @@ class PmsBoardServiceService(Component):
|
||||
if pms_search_param.pmsPropertyId:
|
||||
domain.extend(
|
||||
[
|
||||
"|",
|
||||
(
|
||||
"pms_property_ids",
|
||||
"in",
|
||||
pms_search_param.pmsPropertyId,
|
||||
),
|
||||
("pms_property_ids", "=", False),
|
||||
("pms_property_id", "=", pms_search_param.pmsPropertyId),
|
||||
]
|
||||
)
|
||||
result_board_service_lines = []
|
||||
|
||||
@@ -151,7 +151,8 @@ class PmsAgencyService(Component):
|
||||
pms_property_id=pms_property_id,
|
||||
pricelist_id=pricelist_id,
|
||||
partner_id=partner_id,
|
||||
product_qty=product_qty,
|
||||
product_qty=product_qty or 1,
|
||||
date_consumption=date_consumption,
|
||||
board_service_id=board_service.id,
|
||||
)
|
||||
return price
|
||||
|
||||
Reference in New Issue
Block a user