mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD]pms_api_rest: pricelist pms enabled configuration
This commit is contained in:
@@ -28,7 +28,11 @@ class PmsPricelistService(Component):
|
||||
auth="jwt_api_pms",
|
||||
)
|
||||
def get_pricelists(self, pms_search_param, **args):
|
||||
pricelists = self.env["product.pricelist"].search([])
|
||||
pricelists = self.env["product.pricelist"].search(
|
||||
[
|
||||
("is_pms_available", "=", True),
|
||||
]
|
||||
)
|
||||
if pms_search_param.pmsPropertyIds and pms_search_param.pmsPropertyId:
|
||||
raise ValidationError(
|
||||
_(
|
||||
|
||||
Reference in New Issue
Block a user