Skip to Content
मेन्यू
This question has been flagged
1 Reply
3910 Views

I want to use javascript eval function on float and integer input fields. For example in sale order, I want to calculate any product quantity like "2*6" I used my own jquery but id doesn't work, it seems odoo ignores it. Is there a way to do it? Thanks.

$(document).ready(function(){
  $('input[name=product_uom_qty]').change(function(e){                
    $(this).val(eval($(this).val()));
  })
});
Avatar
Discard
Best Answer

Please change event to onclick on add more. Because input is disabled.

Avatar
Discard
Related Posts Replies Views Activity
0
जुल॰ 25
795
1
जुल॰ 25
5906
0
जुल॰ 25
1547
0
जून 25
1454
1
जून 25
1462