I’m trying set value by javascript, but when i reload the page the values gone.
After reload, clear the fields
callback: function(r) {
let doc_name = r.message.name;
d.serie_parcela = doc_name;
}
In that way this it not finding the field serie_parcela:
callback: function(r) {
let doc_name = r.message.name;
cur_frm.set_value(d.serie_parcela, doc_name);
}
I tried .save(), but this change the docstatus of document