Commit eddf1593 authored by Aurel's avatar Aurel

must also defined these getter onto check operaiton line


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14144 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 14130ce2
...@@ -61,3 +61,24 @@ class CheckOperationLine(BaobabMixin, DeliveryLine): ...@@ -61,3 +61,24 @@ class CheckOperationLine(BaobabMixin, DeliveryLine):
, PropertySheet.ItemAggregation , PropertySheet.ItemAggregation
) )
security.declareProtected(Permissions.View, 'getDestinationPaymentInternalBankAccountNumber')
def getDestinationPaymentInternalBankAccountNumber(self, default=None):
"""
Getter for internal account number
"""
dest = self.getDestinationPaymentValue(default)
if dest is default:
return default
else:
return dest.getInternalBankAccountNumber(default)
security.declareProtected(Permissions.View, 'getSourcePaymentInternalBankAccountNumber')
def getSourcePaymentInternalBankAccountNumber(self, default=None):
"""
Getter for internal account number
"""
src = self.getSourcePaymentValue(default)
if src is default:
return default
else:
return src.getInternalBankAccountNumber(default)
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