I.I need to change doctype company and add one field, but i want to do the changes programmatically in my module.The ideia is, if my module is installed then the new field show in company, if not... you guess!!!I that possible? If it is point me out the outlines that i do the rest.
I know that i must put a hook to company "get" or some thing like that but i don't see how.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/c9a453a1-aa95-4ac7-afd5-bec658fea0b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 16-Sep-2014, at 4:33 pm, Luis Fernandes <luisfmf...@gmail.com> wrote:I.I need to change doctype company and add one field, but i want to do the changes programmatically in my module.The ideia is, if my module is installed then the new field show in company, if not... you guess!!!I that possible? If it is point me out the outlines that i do the rest.Add your field as a "Custom Field" and set it as a fixture (will be installed / updated with the app)Run frappe --export_fixtures to build them
I know that i must put a hook to company "get" or some thing like that but i don't see how.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.
I already teste what do you said in every possible way. I'm doing some thing wrong.you said -> Add your field as a "Custom Field": it is easy and it's done. The field is named NIF, type check and field name is nif.you said -> and set it as a fixture... What do you mean by that? I made like the example and i put in the hooks.py of my application:fixtures = ["Customer"]
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/6f955034-a129-4937-b116-90438301c296%40googlegroups.com.
Know i understand!!! You mean create a fixture for a "Custom Field" you mean Literally!!!!Thanks, i will try.
Terça-feira, 16 de Setembro de 2014 12:03:29 UTC+1, Luis Fernandes escreveu:
I.I need to change doctype company and add one field, but i want to do the changes programmatically in my module.The ideia is, if my module is installed then the new field show in company, if not... you guess!!!I that possible? If it is point me out the outlines that i do the rest.