formatting, indexes optimized

This commit is contained in:
Frederik Jaeckel 2023-11-29 15:19:38 +01:00
parent 77ee7d15b7
commit 7220cff5ac
12 changed files with 124 additions and 126 deletions

View file

@ -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'),
])