From 0ca7f6f9d4603bb146c2c653a6edb73d70f609d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 31 Mar 2022 10:35:06 +0200 Subject: [PATCH] Zuviel in b24afac71c944 entfernt. Historie und Wiedervorlage wieder anzeigen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Historie ist nur lesend im Zugriff und Wiedervorlagen zu schreibgeschützten Belegen zu erstellen, wenn das Recht productivity vergeben ist, find ich i.O. --- SL/Controller/Order.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 39b3c0128..af7858a5d 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -2226,6 +2226,22 @@ sub setup_edit_action_bar { only_if => $deletion_allowed, ], + combobox => [ + action => [ + t8('more') + ], + action => [ + t8('History'), + call => [ 'set_history_window', $self->order->id, 'id' ], + disabled => !$self->order->id ? t8('This record has not been saved yet.') : undef, + ], + action => [ + t8('Follow-Up'), + call => [ 'kivi.Order.follow_up_window' ], + disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, + only_if => $::auth->assert('productivity', 1), + ], + ], # end of combobox "more" ); } } -- 2.20.1