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
...@@ -181,7 +181,19 @@ class InvoiceTransactionRule(Rule, PredicateMatrix): ...@@ -181,7 +181,19 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
# Pass to base class # Pass to base class
Rule.expand(self, applied_rule, force=force, **kw) 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') security.declareProtected(Permissions.ModifyPortalContent, 'solve')
def solve(self, applied_rule, solution_list): 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