Commit b982cfeb authored by Yoshinori Okuji's avatar Yoshinori Okuji

Override getInventoriatedQuantity again, because AccountingTransactionLine...

Override getInventoriatedQuantity again, because AccountingTransactionLine does not have target values.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1100 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b731041f
......@@ -33,6 +33,7 @@ from Products.CMFCore.WorkflowCore import WorkflowAction
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5.Document.DeliveryLine import DeliveryLine
from Products.ERP5.ERP5Globals import balance_transaction_line_type_list
from Products.ERP5.Document.Amount import Amount
from zLOG import LOG
......@@ -243,3 +244,10 @@ Une ligne tarifaire."""
if kw.has_key('destination'):
self._setDestination(kw['destination'])
DeliveryLine._edit(self, REQUEST=REQUEST, force_update = force_update, **kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedQuantity')
def getInventoriatedQuantity(self):
"""
Redefine this method here, because AccountingTransactionLine does not have target values.
"""
return Amount.getInventoriatedQuantity(self)
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