Commit 743bcfa4 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Disable excessive log calls.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3849 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 63b6b1d8
...@@ -206,9 +206,9 @@ Une ligne tarifaire.""" ...@@ -206,9 +206,9 @@ Une ligne tarifaire."""
""" """
result = self.getInventoriatedQuantity() result = self.getInventoriatedQuantity()
resource = self.getResourceValue() resource = self.getResourceValue()
if resource is None : if resource is None:
LOG('AccountingTransactionLine.getPrice()', 100, #LOG('AccountingTransactionLine.getPrice()', 100, 'no resource for %s'%(self.getPath()))
'no resource for %s'%(self.getPath())) pass
source = self.getSourceValue() source = self.getSourceValue()
if source is not None and resource is not None: if source is not None and resource is not None:
......
...@@ -317,7 +317,8 @@ class Amount(Base, Variated): ...@@ -317,7 +317,8 @@ class Amount(Base, Variated):
resource_quantity_unit = resource.getDefaultQuantityUnit() resource_quantity_unit = resource.getDefaultQuantityUnit()
converted_quantity = resource.convertQuantity(quantity, quantity_unit, resource_quantity_unit) converted_quantity = resource.convertQuantity(quantity, quantity_unit, resource_quantity_unit)
else: else:
LOG("ERP5 WARNING:", 100, 'could not convert quantity for %s' % self.getRelativeUrl()) #LOG("ERP5 WARNING:", 100, 'could not convert quantity for %s' % self.getRelativeUrl())
pass
return converted_quantity return converted_quantity
security.declareProtected(Permissions.ModifyPortalContent, 'setConvertedQuantity') security.declareProtected(Permissions.ModifyPortalContent, 'setConvertedQuantity')
......
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