diff --git a/services/operation_services.py b/services/operation_services.py index 089c86223630c4b4cfeb2562b99ae2451bcfaa4e..86c3e7cb924468276d013cffae17b49e554637e3 100644 --- a/services/operation_services.py +++ b/services/operation_services.py @@ -190,7 +190,7 @@ class OperationsService(Component): "amount_total": n.amount_total, "url": base_url + n.get_portal_url(report_type="pdf"), } - ) + ) if acc_account_ids else [] else: # Récupération de toutes les factures liées à l'opération spécifiée domain = [("acc_operation_id", "=", _id)] @@ -214,7 +214,7 @@ class OperationsService(Component): "type": n.type, "url": base_url + n.get_portal_url(), } - ) + ) if acc_contract_ids else [] return datas @restapi.method(