Remove restriction state

This commit is contained in:
Oscar Alvarez 2020-07-06 09:38:04 -05:00
parent eae3d027d0
commit 98b678a169
2 changed files with 2 additions and 2645 deletions

View File

@ -1378,7 +1378,8 @@ class MainWindow(FrontWindow):
self.dialog_search_products.show() self.dialog_search_products.show()
def action_search_sale(self): def action_search_sale(self):
if self._state in ['accept', 'cash']: print('self._state >>> ', self._state)
if self._state in ['accept']:
return return
delta = str(datetime.now() - timedelta(4)) delta = str(datetime.now() - timedelta(4))
if self.type_pos_user == 'cashier': if self.type_pos_user == 'cashier':