From cee72a90e66282070c1a1627f023d4fcb031aea0 Mon Sep 17 00:00:00 2001 From: Alexei Bezborodov Date: Wed, 22 Nov 2023 10:02:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D1=91=D0=BD=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=80=D1=8F=D0=B4=D0=BE=D0=BA=20=D0=BA=D0=BD=D0=BE?= =?UTF-8?q?=D0=BF=D0=BE=D0=BA=20=D0=B2=20=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7?= =?UTF-8?q?=D0=B0=D1=85=20#15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot_modules/orders.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bot_modules/orders.py b/bot_modules/orders.py index 1f8ecdb..db1f1ae 100644 --- a/bot_modules/orders.py +++ b/bot_modules/orders.py @@ -223,6 +223,14 @@ class ModuleOrders(mod_table_operate.TableOperateModule): a_ItemData[photo_pay_field] = '0' return super().AddBDItemFunc(a_ItemData, a_UserID) + def GetStartButtons(self, a_Message, a_UserGroups): + return [ + [mod_table_operate.ButtonNames.ADD, user_access.AccessMode.ADD], + [mod_table_operate.ButtonNames.EDIT, user_access.AccessMode.EDIT], + [mod_table_operate.ButtonNames.LIST, user_access.AccessMode.VIEW], + [mod_table_operate.ButtonNames.DEL, user_access.AccessMode.DELETE], + ] + def GetStartKeyboardButtons(self, a_Message, a_UserGroups): parent_buttons = super().GetStartKeyboardButtons(a_Message, a_UserGroups) cur_buttons = [