Config: setting for booking-wizard - 'fixate'

This commit is contained in:
Frederik Jaeckel 2024-06-01 11:13:47 +02:00
parent 865a2c7fa6
commit 400ebed692
7 changed files with 62 additions and 3 deletions

View file

@ -157,7 +157,8 @@ class EnterBookingWizard(Wizard):
book_ids.append(getattr(cfg1, x, None).id)
result = {
'fixate': False,
'fixate': cfg1.fixate
if cfg1 and cfg1.fixate is not None else False,
'cashbooks': [x.id for x in Cashbook.search([
('state', '=', 'open'),
('btype', '!=', None),