kategorie: sperrt 'Typ' wenn parent existiert, korrekte Anpassung
der sub-kategorien bei Änderung + test Line: Kategoriefeld prüft Inhalt + tests
This commit is contained in:
parent
52ffa0536e
commit
8fd6e0d339
7 changed files with 137 additions and 46 deletions
|
@ -43,7 +43,7 @@ class BookTestCase(ModuleTestCase):
|
|||
Book = pool.get('cashbook.book')
|
||||
|
||||
types = self.prep_type()
|
||||
category = self.prep_category()
|
||||
category = self.prep_category(cattype='in')
|
||||
company = self.prep_company()
|
||||
book, = Book.create([{
|
||||
'name': 'Book 1',
|
||||
|
@ -74,7 +74,7 @@ class BookTestCase(ModuleTestCase):
|
|||
Book = pool.get('cashbook.book')
|
||||
|
||||
types = self.prep_type()
|
||||
category = self.prep_category()
|
||||
category = self.prep_category(cattype='in')
|
||||
company = self.prep_company()
|
||||
book, = Book.create([{
|
||||
'name': 'Book 1',
|
||||
|
@ -107,7 +107,7 @@ class BookTestCase(ModuleTestCase):
|
|||
Book = pool.get('cashbook.book')
|
||||
|
||||
types = self.prep_type()
|
||||
category = self.prep_category()
|
||||
category = self.prep_category(cattype='in')
|
||||
company = self.prep_company()
|
||||
book, = Book.create([{
|
||||
'name': 'Book 1',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue