"""Module manifest — see core/modules/model.py and APPS_PLATFORM §4.""" from core.modules.model import ConfigField, DeviceApp, Limit, Module, Perm # Back to the sign-in screen after this many idle minutes (shared screens; 0 = never). Used by # the terminal from step 3.1c. AUTO_SIGN_OUT = ConfigField('auto_sign_out_minutes', 'int', default=0, choices=(0, 2, 5, 10, 30, 60)) MODULE = Module( key='pos_counter', kind='app', name='Counter POS', description='A counter terminal for quick orders (coming in phase 3).', depends=('ordering',), permissions=( Perm('pos_counter.access', 'Use the counter POS', roles=('owner', 'store_manager', 'barista', 'barman', 'waiter')), ), limits=( Limit('devices', 'Number of counter terminals', free=0, licensed_default=1), ), device_app=DeviceApp(login_modes=('pin', 'tap', 'password'), scope=('pos_counter.*', 'ordering.*'), config=(AUTO_SIGN_OUT,)), )