Odoo Help

Welcome!

This community 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.

0

Send parameters python to javascript

By
Edison Ibañez
on 7/30/13, 7:58 PM 1,806 views

Send parameters python to javascript

Greetings again,

I have a function in python that filters data from sale_order_line me,

there is a way to send this data filtered javascript to be treated there ....

Thanks for responding

0
Attila Tatár
On 8/11/13, 7:42 PM

You have to ask from javascript side:

var model = new instance.web.Model("your_model_name"); model.call("your_function_name", [], {context: new instance.web.CompoundContext()}).then(function(result) {
console.log('Here is the result:'+result); // if the result can be concatenate with string
})

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/30/13, 7:58 PM
Seen: 1806 times
Last updated: 3/16/15, 8:10 AM