fix: restrict party types to Supplier/Customer for AR/AP report

(cherry picked from commit 6aa8fd0f7b)
This commit is contained in:
ruthra kumar
2022-08-25 15:50:06 +05:30
committed by Mergify
parent 4d8ced6c87
commit c407d1e51a

View File

@@ -726,6 +726,7 @@ class ReceivablePayableReport(object):
def prepare_conditions(self):
self.qb_selection_filter = []
party_type_field = scrub(self.party_type)
self.qb_selection_filter.append(self.ple.party_type == self.party_type)
self.add_common_filters(party_type_field=party_type_field)