From 3d774e4a73df6169c379bf55ba0a975cc99a1b92 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 9 May 2017 12:00:52 +0200 Subject: [PATCH] =?utf8?q?ActionBar:=20oe.pl:=20Actions=20f=C3=BCr=20Wechs?= =?utf8?q?el=20Einkauf=20=E2=86=94=20Verkauf=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 2c75173f7..1a4f5ca26 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -362,13 +362,13 @@ sub setup_oe_action_bar { t8('Sales Order'), submit => [ '#form', { action => "sales_order" } ], disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, - only_if => $params{is_sales_quo}, + only_if => $params{is_sales_quo} || $params{is_pur_ord}, ], action => [ t8('Purchase Order'), submit => [ '#form', { action => "purchase_order" } ], disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, - only_if => $params{is_req_quo}, + only_if => $params{is_sales_ord} || $params{is_req_quo}, ], action => [ t8('Delivery Order'), @@ -386,11 +386,13 @@ sub setup_oe_action_bar { t8('Quotation'), submit => [ '#form', { action => "quotation" } ], disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, + only_if => $params{is_sales_ord}, ], action => [ t8('Request for Quotation'), submit => [ '#form', { action => "request_for_quotation" } ], disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, + only_if => $params{is_pur_ord}, ], ], # end of combobox "Workflow" -- 2.20.1