mainWindow.showFullScreen() if Settings.value('koo.pos_mode'): import Koo.Pos app.installEventFilter(Koo.Pos.PosEventFilter(mainWindow)) if Settings.value('koo.enter_as_tab'): from Koo.Common import EnterEventFilter app.installEventFilter(EnterEventFilter.EnterEventFilter(mainWindow)) from Koo.Common import ArrowsEventFilter app.installEventFilter(ArrowsEventFilter.ArrowsEventFilter(mainWindow)) from Koo.Common import WhatsThisEventFilter app.installEventFilter(WhatsThisEventFilter.WhatsThisEventFilter(mainWindow)) # Load default wizard if not Settings.value('login.url'): sys.exit("Error: No connection parameters given.") if not Settings.value('login.db'): sys.exit("Error: No database given.") Rpc.session.login(Settings.value('login.url'), Settings.value('login.db')) if not Rpc.session.logged(): sys.exit("Error: Invalid credentials.") id = Rpc.session.execute('/object', 'execute', 'res.users', 'read', [Rpc.session.uid], ['action_id', 'name'], Rpc.session.context)
import Koo.Pos app.installEventFilter(Koo.Pos.PosEventFilter(win)) if Settings.value('koo.enter_as_tab'): from Koo.Common import EnterEventFilter app.installEventFilter(EnterEventFilter.EnterEventFilter(win)) if Settings.value('koo.fullscreen'): win.showFullScreen() if Settings.value('koo.enable_event_filters'): from Koo.Common import ArrowsEventFilter app.installEventFilter(ArrowsEventFilter.ArrowsEventFilter(win)) from Koo.Common import WhatsThisEventFilter app.installEventFilter(WhatsThisEventFilter.WhatsThisEventFilter(win)) if Settings.value('tip.autostart'): from Koo.Dialogs.TipOfTheDayDialog import * dialog = TipOfTheDayDialog() dialog.exec_() win.showLoginDialog() app.exec_() except Exception as e: print(e) import sys, traceback traceback.print_exc(file=sys.stdout) # client.captureException()