$bar->actions->[-1]->add_actions([ t8('History'),
call => [ 'set_history_window', $form->{id} * 1, 'id' ],
disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,
$bar->actions->[-1]->add_actions([ t8('History'),
call => [ 'set_history_window', $form->{id} * 1, 'id' ],
disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,