Hi, I've been trying to call the python method from the web client. The method is
action_invoice(self, cr, uid, ids, context=None):
In javascript, I call this method via
var model = new instance.web.Model("pos.order");
model.call("action_invoice", [], {context: new instance.web.CompoundContext()});
But it doesn't work. The error says that I lack one argument in the call. I think what I miss is the arguments "ids". From googling, it seems to be a list of record ids. What is it anyway ? Could you please tell me what is it and how to store that argument it in the javascript ?
Thank you very much
argument "ids" is the record id or list of records ids. In the method call pass "ids" record id value. so that method is executed for the particular record id.