[IMP]14.0-pms_api_rest: segmentations are filtered by the is_used_in_checkin field in service

This commit is contained in:
braisab
2023-12-26 13:01:31 +01:00
committed by Darío Lodeiros
parent f55b8d5d6e
commit 6eac3d5e62

View File

@@ -27,7 +27,7 @@ class PmsPartnerCategoriesService(Component):
for category in ( for category in (
self.env["res.partner.category"] self.env["res.partner.category"]
.with_context(lang=self.env.user.lang) .with_context(lang=self.env.user.lang)
.search([]) .search([("is_used_in_checkin", "=", True)])
): ):
result_categories.append( result_categories.append(
ResPartnerCategoryInfo( ResPartnerCategoryInfo(