From 7408fa23da059a3236d899ffe6c2f5ca7d5a4e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 4 May 2010 08:09:36 +0000 Subject: [PATCH] movement created by delivery simulation rule will be accountable if they do not have a delivery. It's the parent class behaviour, so remove the method overriden here. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34965 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/DeliverySimulationRule.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/product/ERP5/Document/DeliverySimulationRule.py b/product/ERP5/Document/DeliverySimulationRule.py index 644c81e85d..1e1cae802c 100644 --- a/product/ERP5/Document/DeliverySimulationRule.py +++ b/product/ERP5/Document/DeliverySimulationRule.py @@ -44,17 +44,6 @@ class DeliverySimulationRule(Rule): security = ClassSecurityInfo() security.declareObjectProtected(Permissions.AccessContentsInformation) - security.declareProtected(Permissions.AccessContentsInformation, - 'isAccountable') - def isAccountable(self, movement): - """ - Tells whether generated movement needs to be accounted or not. - - Invoice movement are never accountable, so simulation movement for - invoice movements should not be accountable either. - """ - return 0 - security.declareProtected(Permissions.ModifyPortalContent, 'expand') def expand(self, applied_rule, force=0, **kw): """ -- 2.30.9