Commit 5309d6ed authored by Jérome Perrin's avatar Jérome Perrin

newCellContent should not have been removed in last commit.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5016 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00655be6
......@@ -182,6 +182,18 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
# Pass to base class
Rule.expand(self, applied_rule, force=force, **kw)
# Matrix related
security.declareProtected( Permissions.ModifyPortalContent,
'newCellContent' )
def newCellContent(self, id, **kw):
"""
Creates a new Cell.
"""
self.invokeFactory(type_name='Accounting Rule Cell', id=id)
new_cell = self.get(id)
return new_cell
security.declareProtected(Permissions.ModifyPortalContent, 'solve')
def solve(self, applied_rule, solution_list):
"""
......
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