Commit 0b336f2c authored by Jérome Perrin's avatar Jérome Perrin

make it possible to set a grouping reference on an accounting line without

modify permission. This is not allowed from the URL though


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19678 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 85b1cd68
......@@ -123,3 +123,15 @@ class AccountingTransactionLine(DeliveryLine):
defining the equivalent in EUR.
"""
return 1.0
security.declareProtected(Permissions.AccessContentsInformation,
'setGroupingReference')
def setGroupingReference(self, value):
# Sets the grouping reference.
# This method is redefined here to override security definition.
# In the case of an accounting transaction line, we want to be able to
# set a grouping reference on a line after the point where we remove the
# Modify portal content permission, as long as this method cannot be called
# directly from the URL, that's why this method is without docstring.
self._baseSetGroupingReference(value)
self.reindexObject()
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