my $name = $::form->escape($self->{cv}->name, 1);
my $db = $self->is_vendor() ? 'vendor' : 'customer';
+ my $action = 'add';
+
+ if ($::instance_conf->get_feature_experimental && 'oe.pl' eq $script) {
+ $script = 'controller.pl';
+ $action = 'Order/' . $action;
+ }
my $url = $self->url_for(
controller => $script,
- action => 'add',
+ action => $action,
vc => $db,
$db .'_id' => $self->{cv}->id,
$db => $name,
}
sub action_test_page {
- $::request->{layout}->add_javascripts('autocomplete_customer.js');
$_[0]->render('customer_vendor/test_page');
}
$self->{template_args} ||= {};
- $::request->{layout}->add_javascripts('autocomplete_customer.js');
$::request->{layout}->add_javascripts('kivi.CustomerVendor.js');
$::request->{layout}->add_javascripts('kivi.File.js');
combobox => [
action => [
t8('Save'),
- submit => [ '#form', { action => "CustomerVendor/save" } ],
- checks => [ 'check_taxzone_and_ustid' ],
+ submit => [ '#form', { action => "CustomerVendor/save" } ],
+ checks => [ 'check_taxzone_and_ustid' ],
+ accesskey => 'enter',
],
action => [
t8('Save and Close'),