From 40b87de31c35806218e7165b732b91b675f39e87 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 8 Feb 2022 12:43:52 +0100 Subject: [PATCH] Beistell-Lieferschein: Als neu speichern deaktivieren, mit Hinweis auf WF Da man Beistell-Lieferscheine noch nicht direkt erfassen kann, braucht man auch (noch) nicht die Funktion als neu speichern --- SL/Controller/DeliveryOrder.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/Controller/DeliveryOrder.pm b/SL/Controller/DeliveryOrder.pm index d7dd97f9d..5ebbf9d68 100644 --- a/SL/Controller/DeliveryOrder.pm +++ b/SL/Controller/DeliveryOrder.pm @@ -1796,7 +1796,9 @@ sub setup_edit_action_bar { action => [ t8('Save as new'), call => [ 'kivi.DeliveryOrder.save', 'save_as_new', $::instance_conf->get_order_warn_duplicate_parts ], - disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, + disabled => $self->type eq 'supplier_delivery_order' ? t8('Need a workflow for Supplier Delivery Order') + : !$self->order->id ? t8('This object has not been saved yet.') + : undef, ], ], # end of combobox "Save" -- 2.20.1