optimize search-queries, line: fix state-selection
This commit is contained in:
parent
6550baa468
commit
7a4fd94981
6 changed files with 20 additions and 20 deletions
|
@ -152,7 +152,7 @@ class EnterBookingWizard(Wizard):
|
|||
'cashbooks': [x.id for x in Cashbook.search([
|
||||
('state', '=', 'open'),
|
||||
('btype', '!=', None),
|
||||
('owner.id', '=', Transaction().user),
|
||||
('owner', '=', Transaction().user),
|
||||
('id', 'in', book_ids),
|
||||
])],
|
||||
'bookingtype': getattr(self.start, 'bookingtype', 'out'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue