Source code for odoo_xmlrpc_twisted.functions.get_product_place_list
"""Get the list of products for a user filtered by a specific place.This is a wrapper around get_product_list for backward compatibility."""try:from.get_product_listimportget_product_listexceptImportError:fromget_product_listimportget_product_list
[docs]defget_product_place_list(partner_id,place):""" Get the list of products for a given user (x_partner_id), filtered by a specific place (x_place). This is essentially the same as get_product_list(partner_id, place) but ensures the place parameter is not None or 'all'. Parameters: - partner_id: str - place: str; specific place to filter by Returns: - list of product dicts """# Call the main get_product_list function with the place filterreturnget_product_list(partner_id,place)