[Erp5-report] r19678 - /erp5/trunk/products/ERP5/Document/AccountingTransactionLine.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Mar 4 18:52:47 CET 2008
Author: jerome
Date: Tue Mar 4 18:52:47 2008
New Revision: 19678
URL: http://svn.erp5.org?rev=19678&view=rev
Log:
make it possible to set a grouping reference on an accounting line without
modify permission. This is not allowed from the URL though
Modified:
erp5/trunk/products/ERP5/Document/AccountingTransactionLine.py
Modified: erp5/trunk/products/ERP5/Document/AccountingTransactionLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/AccountingTransactionLine.py?rev=19678&r1=19677&r2=19678&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/AccountingTransactionLine.py (original)
+++ erp5/trunk/products/ERP5/Document/AccountingTransactionLine.py Tue Mar 4 18:52:47 2008
@@ -123,3 +123,15 @@
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()
More information about the Erp5-report
mailing list