--
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 post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/b0472065-021a-4946-b504-24e2f97de4b3%40googlegroups.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Sören,In your custom script (client), you can use:wn.model.with_doc("Address", address_name, function() {var address = wn.model.get_doc("Address", address_name);// now access address[fieldname]});Thanks,Anand.
On 28-May-2013, at 3:11 PM, Sören H. Biere <Kon...@SHB-Technologie.de> wrote:
Hi,like Addy posted in user-forum in january me too would like to use address_title.Simply adding it to address_display in transaction_base.py wouldn't be nice becauseit stops nice injection of contact's name.Am I missing any way to get this fields content in my document?Or do i have to add new method to transaction_base.py, to documents'js and fetch to a new field?Wouldn't this be a nice addition for future release, should i give pull-request once tested?Best regards,Sören--
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.
Hi Sören,In your custom script (client), you can use:wn.model.with_doc("Address", address_name, function() {var address = wn.model.get_doc("Address", address_name);// now access address[fieldname]});Thanks,Anand.
On 28-May-2013, at 3:11 PM, Sören H. Biere <Kon...@SHB-Technologie.de> wrote:
Hi,like Addy posted in user-forum in january me too would like to use address_title.Simply adding it to address_display in transaction_base.py wouldn't be nice becauseit stops nice injection of contact's name.Am I missing any way to get this fields content in my document?Or do i have to add new method to transaction_base.py, to documents'js and fetch to a new field?Wouldn't this be a nice addition for future release, should i give pull-request once tested?Best regards,Sören--
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.
if(doc.customer_address) {
wn.model.with_doc("Address", doc.customer_address, function() {
var address = wn.model.get_doc("Address", doc.customer_address);
doc.anschrift = address["address_title"];
}
);
}
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/45c92469-6fae-4c16-93eb-c219ecb6af8f%40googlegroups.com?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/37F85072-2A27-421E-9510-421410DBDAD9%40erpnext.com?hl=en.