From 4cfeef4a3e1596d1bb76a1246a8f8a5bcf2db60f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 16 Mar 2011 13:33:24 +0000 Subject: [PATCH] we don't need to redefine isDivergent git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44353 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/DeliveryLine.py | 6 ------ product/ERP5/Document/InvoiceCell.py | 12 ------------ product/ERP5/Document/InvoiceLine.py | 12 ------------ 3 files changed, 30 deletions(-) diff --git a/product/ERP5/Document/DeliveryLine.py b/product/ERP5/Document/DeliveryLine.py index 7239fc1c8a..f5d86bcaba 100644 --- a/product/ERP5/Document/DeliveryLine.py +++ b/product/ERP5/Document/DeliveryLine.py @@ -367,12 +367,6 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, ImmobilisationMovement): # 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): """ diff --git a/product/ERP5/Document/InvoiceCell.py b/product/ERP5/Document/InvoiceCell.py index 5468946354..03edebeab5 100644 --- a/product/ERP5/Document/InvoiceCell.py +++ b/product/ERP5/Document/InvoiceCell.py @@ -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 - diff --git a/product/ERP5/Document/InvoiceLine.py b/product/ERP5/Document/InvoiceLine.py index e202e3e968..39d437abaf 100644 --- a/product/ERP5/Document/InvoiceLine.py +++ b/product/ERP5/Document/InvoiceLine.py @@ -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 -- 2.30.9