diff --git a/product/ERP5Banking/Document/BankingOperationLine.py b/product/ERP5Banking/Document/BankingOperationLine.py index 2d3cc64b36d828752a19b59c25e227e7910912de..b9a521f2f74a6afb92783c1176433ccec7cc0aeb 100755 --- a/product/ERP5Banking/Document/BankingOperationLine.py +++ b/product/ERP5Banking/Document/BankingOperationLine.py @@ -49,16 +49,6 @@ class BankingOperationLine(BaobabMixin, AccountingTransactionLine): , 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') def getSourceTotalAssetPriceCurrencyReference(self): """Return the reference of the price currency of the source payment.""" @@ -102,3 +92,16 @@ class BankingOperationLine(BaobabMixin, AccountingTransactionLine): else: 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"