Commit 70d288ed authored by Jérome Perrin's avatar Jérome Perrin

It is necessary to commit the transaction after deleting content of a Predicate Matrix


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14225 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent de2d5aea
...@@ -205,7 +205,8 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase): ...@@ -205,7 +205,8 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
invoice_transaction_rule.deleteContent( invoice_transaction_rule.deleteContent(
[x for x in invoice_transaction_rule.objectIds()]) [x for x in invoice_transaction_rule.objectIds()])
self.assertEquals(len(invoice_transaction_rule.objectValues()), 0) self.assertEquals(len(invoice_transaction_rule.objectValues()), 0)
get_transaction().commit()
# and add new content, predicate product_line # and add new content, predicate product_line
predicate_product_notebook = invoice_transaction_rule.newContent( predicate_product_notebook = invoice_transaction_rule.newContent(
id = 'product_notebook', id = 'product_notebook',
......
...@@ -177,6 +177,8 @@ class TestInvoice(TestPackingListMixin, ...@@ -177,6 +177,8 @@ class TestInvoice(TestPackingListMixin,
invoice_rule.deleteContent([x.getId() invoice_rule.deleteContent([x.getId()
for x in invoice_rule.objectValues()]) for x in invoice_rule.objectValues()])
get_transaction().commit()
self.tic()
region_predicate = invoice_rule.newContent(portal_type = 'Predicate') region_predicate = invoice_rule.newContent(portal_type = 'Predicate')
product_line_predicate = invoice_rule.newContent(portal_type = 'Predicate') product_line_predicate = invoice_rule.newContent(portal_type = 'Predicate')
region_predicate.edit( region_predicate.edit(
......
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