0

I have a boolean field in my model, I want to call python function when this boolean field change using JS? How can I achieved this?

0

1 Answer 1

1

Check some examples in the original source code. You can call python methods with call:

var def_session = new openerp.Model("im_chat.session").call("session_info", [], {"ids" : [session_id]}).then(function(session){
    conv = self.activate_session(session, false);
    conv.received_message(message);
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.