Auftrags-Controller: als experimentelles Feature abschaltbar.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 19 Apr 2017 12:29:40 +0000 (14:29 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 19 Apr 2017 12:31:28 +0000 (14:31 +0200)
bin/mozilla/oe.pl
locale/de/all
locale/en/all
menus/user/10-order-controller.yaml

index f11970d..e49e462 100644 (file)
@@ -1017,7 +1017,7 @@ sub orders {
   $form->{l_open}              = $form->{l_closed} = "Y" if ($form->{open}      && $form->{closed});
   $form->{l_delivered}         = "Y"                     if ($form->{delivered} && $form->{notdelivered});
   $form->{l_periodic_invoices} = "Y"                     if ($form->{periodic_invoices_active} && $form->{periodic_invoices_inactive});
-  $form->{l_edit_exp}          = "Y"                     if (any { $form->{type} eq $_ } qw(sales_order purchase_order));
+  $form->{l_edit_exp}          = "Y"                     if $::instance_conf->get_feature_experimental && (any { $form->{type} eq $_ } qw(sales_order purchase_order));
   map { $form->{"l_${_}"} = 'Y' } qw(order_probability expected_billing_date expected_netamount) if $form->{l_order_probability_expected_billing_date};
 
   my $attachment_basename;
index 563e5eb..f7b950c 100755 (executable)
@@ -3746,6 +3746,7 @@ $self->{texts} = {
   'monthly'                     => 'monatlich',
   'more'                        => 'mehr',
   'never'                       => 'niemals',
+  'new order controller'        => 'Neuer Auftrags-Controller',
   'next'                        => 'vor',
   'no'                          => 'nein',
   'no article assigned yet'     => 'noch kein Artikel zugewiesen',
index bbd3827..32da270 100644 (file)
@@ -3745,6 +3745,7 @@ $self->{texts} = {
   'monthly'                     => '',
   'more'                        => '',
   'never'                       => '',
+  'new order controller'        => '',
   'next'                        => '',
   'no'                          => '',
   'no article assigned yet'     => '',
index 24473ba..b26b75b 100644 (file)
@@ -3,7 +3,7 @@
   name: Add Sales Order (experimental)
   icon: sales_order_add
   order: 350
-  access: sales_order_edit
+  access: sales_order_edit & client/feature_experimental
   params:
     action: Order/add
     type: sales_order
@@ -13,7 +13,7 @@
   name: Add Purchase Order (experimental)
   icon: purchase_order_add
   order: 250
-  access: purchase_order_edit
+  access: purchase_order_edit & client/feature_experimental
   params:
     action: Order/add
     type: purchase_order