[fixes] reload doc after status update and supplier address fetching

This commit is contained in:
Saurabh
2015-10-28 11:40:14 +05:30
parent 653cffec1e
commit 2e65aadb1e
4 changed files with 8 additions and 7 deletions

View File

@@ -53,7 +53,7 @@ erpnext.utils.get_address_display = function(frm, address_field, display_field)
if(frm.updating_party_details) return;
if(!address_field) {
if(frm.doc.customer) {
if(frm.doctype != "Purchase Order" && frm.doc.customer) {
address_field = "customer_address";
} else if(frm.doc.supplier) {
address_field = "supplier_address";