ns.reformat_number(event);
});
- $('.add_makemodel_input').keydown(function(event) {
- if(event.keyCode == 13) {
- event.preventDefault();
- ns.add_makemodel_row();
- return false;
- }
- });
-
- $('.add_customerprice_input').keydown(function(event) {
- if(event.keyCode == 13) {
- event.preventDefault();
- ns.add_customerprice_row();
- return false;
- }
- });
-
$('#part_warehouse_id').change(kivi.Part.reload_bin_selection);
ns.init();
<td></td>
<td></td>
<td align="right">[% 'Customer' | $T8 %]</td>
- <td rowspan="2">[% P.customer_vendor.customer_picker('add_customerprice', '', style='width: 300px', class="add_customerprice_input") %]</td>
+ <td rowspan="2">[% P.customer_vendor.customer_picker('add_customerprice', '', style='width: 300px', class="add_customerprice_input", action={commit_one='kivi.Part.add_customerprice_row'}) %]</td>
<td rowspan="2" align="right">[% L.button_tag('kivi.Part.add_customerprice_row()', LxERP.t8('Add')) %]</td>
</tr>
</tbody>
<td></td>
<td></td>
<td align="right">[% 'Vendor' | $T8 %]</td>
- <td rowspan="2">[% P.customer_vendor.picker('add_makemodel', '', type='vendor', style='width: 300px', class="add_makemodel_input") %]</td>
+ <td rowspan="2">[% P.customer_vendor.picker('add_makemodel', '', type='vendor', style='width: 300px', class="add_makemodel_input", action={commit_one='kivi.Part.add_makemodel_row'}) %]</td>
<td rowspan="2" align="right">[% L.button_tag('kivi.Part.add_makemodel_row()', LxERP.t8('Add')) %]</td>
</tr>
</tbody>