Extending sales_invoice

Hello fellas,

Im actually testing extending sales_invoice. What i want to do is add a couple of fields to sales_invoice, adding longitude & latitude, to know where the invoice was payed in a mobile environment.
As far as I understand, I should add both fields to the docType sales_invoice, and modify sales_invoice.js & .py, so i can insert a google map to show the location if the fields are not null.
Is it correct or should I take care of something else?

Thanx,
M



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9d7d9cad-7a60-47f4-96c3-1ea66a4ec414%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Hey, Marta!

You can do it this way, the problem is that when you need to update ERPNext you need to manage all these changes, which can stagnate your project in a particular version.

I recommend you to use custom fields, and at best you can create an installation script within an app to insert these custom fields for you.


2014-05-23 17:51 GMT-03:00 Marta Ross <ma...@gmail.com>:
Hello fellas,

Im actually testing extending sales_invoice. What i want to do is add a couple of fields to sales_invoice, adding longitude & latitude, to know where the invoice was payed in a mobile environment.
As far as I understand, I should add both fields to the docType sales_invoice, and modify sales_invoice.js & .py, so i can insert a google map to show the location if the fields are not null.
Is it correct or should I take care of something else?

Thanx,
M



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-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9d7d9cad-7a60-47f4-96c3-1ea66a4ec414%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.




--

Best Regards.

Maxwell Morais
Python Developer powered by Webnotes framework <3
+55 11 954329659




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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CABK1YkOwR%2B3uRgTfySBFBhbHGoFUu4bQqz2LEcLTYB%3Dg0WKi2g%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.

@max_morais_dmm

Dear can u elaborate how to " create an installation script within an app to insert these custom fields for you."