subject => $::form->generate_email_subject,
message => $::form->generate_email_body,
attachment_filename => $::form->generate_attachment_filename,
+ js_send_function => 'kivi.SalesPurchase.send_email()',
};
my %files = _get_files_for_email_dialog();
<div id="email_form_print_options"></div>
<p>
- [% L.button_tag("kivi.SalesPurchase.send_email()", LxERP.t8("Send email")) %]
+ [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email")) %]
[% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort")) %]
</p>