def getCell(self, *kw , **kwd): """ This method can be overriden """ if 'base_id' not in kwd: kwd['base_id'] = 'movement' return XMLMatrix.getCell(self, *kw, **kwd)
def getCell(self, *args, **kw): '''Overload the function getCell to be able to search a cell on the inheritance model tree if the cell is not found on current one. ''' paysheet = kw.get('paysheet') if paysheet is None: from Products.ERP5Type.Document import newTempPaySheetTransaction paysheet = newTempPaySheetTransaction(self.getPortalObject(), '', specialise_value=self) model_list = self.findEffectiveSpecialiseValueList(paysheet) for specialised_model in model_list: cell = XMLMatrix.getCell(specialised_model, *args, **kw) if cell is not None: return cell
def getCell(self, *args, **kw): '''Overload the function getCell to be able to search a cell on the inheritance model tree if the cell is not found on current one. ''' paysheet = kw.get('paysheet') if paysheet is None: paysheet = self.getPortalObject().newContent( temp_object=True, portal_type='Pay Sheet Transaction', id='', specialise_value=self) model_list = self.findEffectiveSpecialiseValueList(paysheet) for specialised_model in model_list: cell = XMLMatrix.getCell(specialised_model, *args, **kw) if cell is not None: return cell
def getCell(self, *kw, **kwd): """ This method can be overriden """ kwd.setdefault('base_id', 'path') return XMLMatrix.getCell(self, *kw, **kwd)
def getCell(self, *kw, **kwd): """ This method can be overriden """ kwd.setdefault("base_id", "path") return XMLMatrix.getCell(self, *kw, **kwd)