Commit 813bc285 authored by Jérome Perrin's avatar Jérome Perrin

calling edit with a storage_id as keyword argument is not supported. The only

guarantee is that it will internally get/store value on the storage_id
attribute, then account.edit(is_credit_account=) is not supposed to work.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11879 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 168762f9
...@@ -1378,17 +1378,11 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1378,17 +1378,11 @@ class TestAccounting(ERP5TypeTestCase):
account = self.getAccountModule().newContent(portal_type='Account') account = self.getAccountModule().newContent(portal_type='Account')
# simulate an old object # simulate an old object
account.is_credit_account = True account.is_credit_account = True
account.setCreditAccount(True)
self.failUnless(account.isCreditAccount()) self.failUnless(account.isCreditAccount())
self.failUnless(account.getProperty('credit_account'))
# this is what Account_view would do when you update the code before account.setCreditAccount(False)
# without updating business template.
account.edit(is_credit_account=False)
self.failIf(account.isCreditAccount()) self.failIf(account.isCreditAccount())
account.edit(is_credit_account=True)
self.failUnless(account.getProperty('is_credit_account'))
# tests for Invoice_createRelatedPaymentTransaction # tests for Invoice_createRelatedPaymentTransaction
def _checkRelatedSalePayment(self, invoice, payment, payment_node, quantity): def _checkRelatedSalePayment(self, invoice, payment, payment_node, quantity):
......
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