diff --git a/product/ERP5/Document/DeliveryLine.py b/product/ERP5/Document/DeliveryLine.py index 3d4a7226b52f270618ffc0039daced9319530203..dc543a333163c9eb23eee54efb5f01a80995b92e 100755 --- a/product/ERP5/Document/DeliveryLine.py +++ b/product/ERP5/Document/DeliveryLine.py @@ -254,6 +254,25 @@ Une ligne tarifaire.""" """ return XMLMatrix.getCellValueList(self, base_id=base_id) + security.declareProtected( Permissions.View, 'getCell' ) + 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) + + security.declareProtected( Permissions.ModifyPortalContent, 'newCell' ) + def newCell(self, *kw, **kwd): + """ + This method creates a new cell + """ + if 'base_id' not in kwd: + kwd['base_id'] = 'movement' + + return XMLMatrix.newCell(self, *kw, **kwd) # For generation of matrix lines security.declareProtected( Permissions.ModifyPortalContent, '_setVariationCategoryList' )