remove logging, add config-settings for caching, add docs
This commit is contained in:
parent
03324d5944
commit
78f160bf0b
6 changed files with 47 additions and 96 deletions
|
@ -9,7 +9,6 @@ from trytond.transaction import Transaction
|
|||
from trytond.exceptions import UserError
|
||||
from datetime import date
|
||||
from decimal import Decimal
|
||||
from trytond.modules.cashbook.model import CACHEKEY_CASHBOOK
|
||||
|
||||
|
||||
class BookTestCase(ModuleTestCase):
|
||||
|
@ -190,11 +189,6 @@ class BookTestCase(ModuleTestCase):
|
|||
self.assertEqual(book.rec_name, 'Level 1')
|
||||
self.assertEqual(len(book.childs), 1)
|
||||
self.assertEqual(book.childs[0].rec_name, 'Level 1/Level 2 | 0.00 usd | Open')
|
||||
# ~ self.assertEqual(book.get_cachekeys_by_hierarchy(), [CACHEKEY_CASHBOOK % book.id])
|
||||
# ~ self.assertEqual(book.childs[0].get_cachekeys_by_hierarchy(), [
|
||||
# ~ CACHEKEY_CASHBOOK % book.id,
|
||||
# ~ CACHEKEY_CASHBOOK % book.childs[0].id
|
||||
# ~ ])
|
||||
|
||||
@with_transaction()
|
||||
def test_book_deny_delete_open(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue