add restrinct for delete product in profile order
and salesman for restaurants
This commit is contained in:
parent
8cc6cbf204
commit
7cf806cd81
|
@ -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'])
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = "5.0.58"
|
||||
__version__ = "5.0.59"
|
||||
|
|
Loading…
Reference in New Issue