Commit 140641a8 authored by Guillaume Michon's avatar Guillaume Michon

Modified some calls to adapt to last months framework changes


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2413 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37835db8
......@@ -29,7 +29,7 @@
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type import Base, Permissions, PropertySheet, Constraint, Interface
from Products.ERP5.Core import MetaNode, MetaResource
from Products.CMFCore.WorkflowCore import WorkflowMethod
......@@ -267,8 +267,14 @@ an accounting immobilisation (in order to amortise an object)
"""
section = self.getSectionValue()
if section is not None:
return section.getSocialCapitalCurrency()
return section.getSocialCapitalCurrencyId()
return None
security.declareProtected(Permissions.View, 'checkConsistency')
def checkImmobilisationConsistency(self, *args, **kw):
"""
Checks the consistency about immobilisation values
"""
return self._checkConsistency(*args, **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