Commit 0c78c084 authored by Fabien Morin's avatar Fabien Morin

- correct bad indentation

- override the getCell method to search cells on inherited models if it's not
  find on the current model


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18590 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 07ac83df
...@@ -68,6 +68,21 @@ class PaySheetModel(TradeCondition, XMLMatrix): ...@@ -68,6 +68,21 @@ class PaySheetModel(TradeCondition, XMLMatrix):
, PropertySheet.DefaultAnnotationLine , PropertySheet.DefaultAnnotationLine
) )
security.declareProtected( Permissions.View, 'getCell' )
def getCell(self, *kw , **kwd):
'''
override of the function getCell to ba able to search a cell on the
inheritance model
'''
LOG('getCell ', 0, kw)
cell = XMLMatrix.getCell(self, *kw, **kwd)
# if cell not found, look on the inherited models
if cell is None and self.getSpecialiseValue() is not None:
cell = self.getSpecialiseValue().getCell(*kw, **kwd)
return cell
def getReferenceDict(self, portal_type_list, get_none_reference=0): def getReferenceDict(self, portal_type_list, get_none_reference=0):
''' '''
return all objects reference and id of the model wich portal_type is in the return all objects reference and id of the model wich portal_type is in the
......
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