mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]14.0-pms_api_rest: segmentations are filtered by the is_used_in_checkin field in service
This commit is contained in:
@@ -27,7 +27,7 @@ class PmsPartnerCategoriesService(Component):
|
||||
for category in (
|
||||
self.env["res.partner.category"]
|
||||
.with_context(lang=self.env.user.lang)
|
||||
.search([])
|
||||
.search([("is_used_in_checkin", "=", True)])
|
||||
):
|
||||
result_categories.append(
|
||||
ResPartnerCategoryInfo(
|
||||
|
||||
Reference in New Issue
Block a user