Thanks.--
Note:
If you are posting an issue,
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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/e4e9fc8b-bbd1-4646-967a-a9a0c7578e50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 21-Aug-2014, at 3:07 pm, Luis Fernandes <luisfmf...@gmail.com> wrote:I need help in extend doctype's. I know i can add columns to doctype, for example doctype ToDo. But i would like to add some functions in javascript and python (controllers) to extend the functionality of ToDo and adapted to my needs without change the original code of ToDo.My question is: How can i add functionality to Doctype (for instead in controller) without change the original code? Or how can i make the framework to call my code before insert in Doctype field.Same thing that we can do with openerp, make a module to extends funcionality and call the extended module with super for instead.Read this:
https://frappe.io/developers/guideyou will have to do that in your app and add your event in "hooks.py"Check this:You need to add a hook to "before_insert"Sorry this is not documented... should be!
Thanks.--
Note:
If you are posting an issue,
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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-forum+unsub...@googlegroups.com.
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/381aaf33-3d4a-43ad-a4b2-946636ef06ff%40googlegroups.com.
Thanks for your answer again.I just want to extend modules, for instance extend module ToDo and adapt to my needs or extend controllers. I like how erpnext are design, and i would like to change from openerp to erpnext but i need extend modules.
Quinta-feira, 21 de Agosto de 2014 16:27:39 UTC+1, rushabh escreveu:Both will be called. Order is random.
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/a223a954-97e8-4c98-a420-acb36e6982a7%40googlegroups.com.