Commit a1053ad9 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: Fixup SaleInvoiceTransaction_getBaseCategoryDictForPrintout

parent c0bde16c
...@@ -7,9 +7,9 @@ portal = context.getPortalObject() ...@@ -7,9 +7,9 @@ portal = context.getPortalObject()
person = portal.portal_membership.getAuthenticatedMember().getUserValue() person = portal.portal_membership.getAuthenticatedMember().getUserValue()
assert context.getPortalType() == 'Sale Invoice Transaction' assert context.getPortalType() == 'Sale Invoice Transaction'
# The source_section is usually not accessible from the user, # The source_section/destination_section is usually not accessible
# So to not leak information, we rely on Shadow User to retrive # from the user, So to not leak information, we rely on Shadow User
# the information rather them flex security. # to retrive the information rather them flex security.
def wrapShadowFunction(invoice, base_category): def wrapShadowFunction(invoice, base_category):
document_list = invoice.getValueList(base_category) document_list = invoice.getValueList(base_category)
if not document_list: if not document_list:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment