Commit 2ed3e3ab authored by Aurel's avatar Aurel

no need to redefine method for Source/DestinationTotalAssetPrice

getBaobabSource/Destination must return a default bank account in any
cases


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16803 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 434b2218
...@@ -49,16 +49,6 @@ class BankingOperationLine(BaobabMixin, AccountingTransactionLine): ...@@ -49,16 +49,6 @@ class BankingOperationLine(BaobabMixin, AccountingTransactionLine):
, PropertySheet.DublinCore , PropertySheet.DublinCore
) )
security.declareProtected(Permissions.View, 'getSourceTotalAssetPrice')
def getSourceTotalAssetPrice(self):
"""Default to quantity."""
return self._baseGetSourceTotalAssetPrice() or abs(self.getQuantity())
security.declareProtected(Permissions.View, 'getDestinationTotalAssetPrice')
def getDestinationTotalAssetPrice(self):
"""Default to quantity."""
return self._baseGetDestinationTotalAssetPrice() or abs(self.getQuantity())
security.declareProtected(Permissions.View, 'getSourceTotalAssetPriceCurrencyReference') security.declareProtected(Permissions.View, 'getSourceTotalAssetPriceCurrencyReference')
def getSourceTotalAssetPriceCurrencyReference(self): def getSourceTotalAssetPriceCurrencyReference(self):
"""Return the reference of the price currency of the source payment.""" """Return the reference of the price currency of the source payment."""
...@@ -102,3 +92,16 @@ class BankingOperationLine(BaobabMixin, AccountingTransactionLine): ...@@ -102,3 +92,16 @@ class BankingOperationLine(BaobabMixin, AccountingTransactionLine):
else: else:
return src.getInternalBankAccountNumber(default) return src.getInternalBankAccountNumber(default)
security.declareProtected(Permissions.View, 'getBaobabSource')
def getBaobabSource(self, **kw):
"""
getter for source payment
"""
return "account_module/bank_account"
security.declareProtected(Permissions.View, 'getBaobabDestination')
def getBaobabDestination(self, **kw):
"""
getter for destination payment
"""
return "account_module/bank_account"
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