--
Note:
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/44e9a440-ca05-4774-bdbd-59ad885b9845%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It is the method
https://github.com/webnotes/wnframework/blob/develop/public/js/legacy/form.js#L633
Mas ele não faz parte do ScriptManager, você provavelmente vai ter que controlar manualmente a reescrita deste método, salvando o método original em uma variável e garantindo que ele seja executado posteriormente:
__save = cur_frm.save
cur_frm.save = function(save_action, callback, btn, on_error){
__save(save_action, callback, btn, on_error);
// You custom code
}
--
Note:
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/40b4a0a4-8a08-41cd-b301-22fae1a8064d%40googlegroups.com.
Sorry, for the response in portuguese
“But it is not part of the ScriptManager, you’ll probably have to manually control the rewriting of this method, saving the original method in a variable and ensuring it runs later: “
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/40b4a0a4-8a08-41cd-b301-22fae1a8064d%40googlegroups.com.
If you are using version 3x this requires a hack, but it is possible, it seems that the version 4x there is already a version control log.
Look
https://github.com/webnotes/wnframework/blob/develop/public/js/wn/model/model.js#L198
With on
method you can create a observer
for the field
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/c4712656-44ca-4063-91d9-655adc5ceda3%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.