optimize search-queries, line: fix state-selection
This commit is contained in:
parent
50ce7f5dbc
commit
0e30725d1f
6 changed files with 19 additions and 19 deletions
2
book.py
2
book.py
|
@ -546,7 +546,7 @@ class Book(tree(separator='/'), Workflow, ModelSQL, ModelView):
|
|||
'defbook', 'book1', 'book2', 'book3',
|
||||
'book4', 'book5']:
|
||||
cfg1 = ConfigUser.search([
|
||||
('iduser.id', '=', book.owner.id),
|
||||
('iduser', '=', book.owner.id),
|
||||
('%s.id' % x, '=', book.id)])
|
||||
if len(cfg1) > 0:
|
||||
to_write_config.extend([cfg1, {x: None}])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue