add restrinct for delete product in profile order

and salesman for restaurants
This commit is contained in:
Wilson Gomez 2022-11-22 10:10:53 -05:00
parent 8cc6cbf204
commit 7cf806cd81
2 changed files with 5 additions and 2 deletions

View File

@ -2927,7 +2927,10 @@ class AppWindow(FrontWindow):
return
self.table_sale_lines.setFocus()
line = self.table_sale_lines.get_selected_clicked()
if self.enviroment == 'restaurant' and self.type_pos_user in ['order', 'salesman']\
and line.get('order_sended') and line['order_sended'] in (True, ''):
return self.dialog('user_without_permission')
# if not removed_item:
removed_item = self.table_sale_lines.delete_item(ignore_focus=True)
self._print_reversion(self._sale['id'], removed_item['id'])

View File

@ -1 +1 @@
__version__ = "5.0.58"
__version__ = "5.0.59"