[Erp5-report] r44353 jerome - /erp5/trunk/products/ERP5/Document/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 16 14:33:25 CET 2011
Author: jerome
Date: Wed Mar 16 14:33:24 2011
New Revision: 44353
URL: http://svn.erp5.org?rev=44353&view=rev
Log:
we don't need to redefine isDivergent
Modified:
erp5/trunk/products/ERP5/Document/DeliveryLine.py
erp5/trunk/products/ERP5/Document/InvoiceCell.py
erp5/trunk/products/ERP5/Document/InvoiceLine.py
Modified: erp5/trunk/products/ERP5/Document/DeliveryLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/DeliveryLine.py?rev=44353&r1=44352&r2=44353&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/DeliveryLine.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/DeliveryLine.py [utf8] Wed Mar 16 14:33:24 2011
@@ -367,12 +367,6 @@ class DeliveryLine(Movement, XMLObject,
# divergence support with solving
- security.declareProtected(Permissions.AccessContentsInformation, 'isDivergent')
- def isDivergent(self):
- """ Returns true if the delivery line is divergent
- """
- return bool(self.getDivergenceList())
-
security.declareProtected(Permissions.AccessContentsInformation, 'getDivergenceList')
def getDivergenceList(self):
"""
Modified: erp5/trunk/products/ERP5/Document/InvoiceCell.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/InvoiceCell.py?rev=44353&r1=44352&r2=44353&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/InvoiceCell.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/InvoiceCell.py [utf8] Wed Mar 16 14:33:24 2011
@@ -69,15 +69,3 @@ class InvoiceCell(DeliveryCell):
# Never accountable
return 0
-# security.declareProtected(Permissions.View, 'isDivergent')
-# def isDivergent(self):
-# """
-# Returns 1 if the target is not met according to the current information
-# After and edit, the isOutOfTarget will be checked. If it is 1,
-# a message is emitted
-#
-# emit targetUnreachable !
-# """
-# # Never divergent
-# return 0
-
Modified: erp5/trunk/products/ERP5/Document/InvoiceLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/InvoiceLine.py?rev=44353&r1=44352&r2=44353&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/InvoiceLine.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/InvoiceLine.py [utf8] Wed Mar 16 14:33:24 2011
@@ -80,16 +80,4 @@ class InvoiceLine(DeliveryLine):
# Never accountable
return 0
-# security.declareProtected( Permissions.AccessContentsInformation,
-# 'isDivergent' )
-# def isDivergent(self):
-# """
-# Returns 1 if the target is not met according to the current information
-# After and edit, the isOutOfTarget will be checked. If it is 1,
-# a message is emitted
-#
-# emit targetUnreachable !
-# """
-# # Never divergent
-# return 0
More information about the Erp5-report
mailing list