formatting, indexes optimized
This commit is contained in:
parent
77ee7d15b7
commit
7220cff5ac
12 changed files with 124 additions and 126 deletions
|
@ -11,6 +11,7 @@ from trytond.exceptions import UserError
|
|||
from trytond.i18n import gettext
|
||||
from sql.operators import Equal
|
||||
from .model import order_name_hierarchical
|
||||
from .const import DEF_NONE
|
||||
|
||||
|
||||
sel_categorytype = [
|
||||
|
@ -70,7 +71,7 @@ class Category(tree(separator='/'), ModelSQL, ModelView):
|
|||
t,
|
||||
(t.name, Equal),
|
||||
(t.cattype, Equal),
|
||||
where=(t.parent == None)),
|
||||
where=(t.parent == DEF_NONE)),
|
||||
'cashbook.msg_category_name_unique'),
|
||||
])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue