Odoo Help

1

how to pass data from form into javascript?

By
Eric
on 4/3/14, 3:29 PM 1,780 views

Can somene help me get the data from a form field and modify it based on its value with javascript? Here is what I have so far, but I dont know how to get the form data into javascript

openerp.sale_custom = function(instance){

instance.sale_custom.SaleClass = instance.web.Class.extend({
    field_val: function(){  /*  pass data from the form into here?... */ },
});

var object = new instance.sale_custom.SaleClass();
object.field_val();

}

0
George
On 11/21/14, 5:57 AM

Hi Eric,

           I want to send a field data to javascript for calculation. This should be done before clicking save button. Please guid me ..

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 4/3/14, 3:29 PM
Seen: 1780 times
Last updated: 3/16/15, 8:10 AM