Hi Serge,
Thank you for your swift reply. Your article Working BPM script example is very useful and helped me when I first put together my BPM model.
However, the change to [_purchaseOrder: purchaseOrder.id] has produced the same NullPointerException with the exact same stack trace.
In tcpdump I get the request I’m sending to the server. That is:
{« data »:{« context »:{« _model »:« com.axelor.apps.purchase.db.PurchaseOrder »,« id »:337}},« action »:« action-purchase-order-method-requested »,« model »:« com.axelor.apps.purchase.db.PurchaseOrder »}
That is corect. But the response is:
{« status »:0,« data »:[{« info »:{« message »:« java.lang.NullPointerException »}}]}
Even more surprisingly, the request works well when run from Postman.
I hope I’ve norrowed down a bit what happens.