Explicitly set boolean operator to compose domain of current name of budget line
Closes #13580 (grafted from 71b69144ef2141d9b571a90a2b82017c20a909f2) --HG-- branch : 7.0
This commit is contained in:
1 parent
7cdf85df71
commit
e30db1edfc
1 file changed
+6
-1
@@ -515,7 +515,12 @@ class BudgetLine(BudgetLineMixin, ModelSQL, ModelView):
|
||||
|
||||
@classmethod
|
||||
def search_current_name(cls, name, clause):
|
||||
return super().search_current_name(name, clause) + [
|
||||
if clause[1].startswith('!') or clause[1].startswith('not '):
|
||||
bool_op = 'AND'
|
||||
else:
|
||||
bool_op = 'OR'
|
||||
return [bool_op,
|
||||
super().search_current_name(name, clause),
|
||||
('account_type.name',) + tuple(clause[1:]),
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user