# group_by=(\'parent_uid\', ), # The limit is not applied on the number of payment transactions, but on the number of lines (to simplify setting aggregate relation).\n
where_expression= """\n
NOT EXISTS (\n
SELECT * FROM\n
catalog as payment_transaction_group_catalog, category\n
WHERE \n
category.uid = stock.uid\n
AND category.base_category_uid = %s\n
AND payment_transaction_group_catalog.uid = category.category_uid\n
AND payment_transaction_group_catalog.portal_type = \'Payment Transaction Group\'\n
AND payment_transaction_group_catalog.validation_state NOT IN (\'deleted\', \'cancelled\')\n
<value><string>python: context.getValidationState() == \'open\' and \'PaymentTransactionGroup_getGroupablePaymentTransactionLineList\' or \'PaymentTransactionGroup_getGroupedPaymentTransactionLineList\'</string></value>