Commit 7408fa23 authored by Jérome Perrin's avatar Jérome Perrin

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
parent 8fe10ddd
......@@ -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):
"""
......
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