Merge branch 'develop'

This commit is contained in:
Rushabh Mehta 2015-11-06 11:45:09 +05:30
commit 0a0c267edb
8 changed files with 14 additions and 3 deletions

View File

@ -1,2 +1,2 @@
from __future__ import unicode_literals
__version__ = '6.7.3'
__version__ = '6.7.4'

View File

@ -12,6 +12,7 @@ cur_frm.cscript.refresh = function(doc, dt, dn) {
if(doc.__islocal){
hide_field(['address_html','contact_html']);
erpnext.utils.clear_address_and_contact(cur_frm);
}
else{
unhide_field(['address_html','contact_html']);

View File

@ -37,6 +37,8 @@ erpnext.LeadController = frappe.ui.form.Controller.extend({
if(!this.frm.doc.__islocal) {
erpnext.utils.render_address_and_contact(cur_frm);
} else {
erpnext.utils.clear_address_and_contact(cur_frm);
}
},

View File

@ -29,7 +29,7 @@ blogs.
"""
app_icon = "icon-th"
app_color = "#e74c3c"
app_version = "6.7.3"
app_version = "6.7.4"
source_link = "https://github.com/frappe/erpnext"
error_report_email = "support@erpnext.com"

View File

@ -100,6 +100,11 @@ $.extend(erpnext, {
$.extend(erpnext.utils, {
clear_address_and_contact: function(frm) {
$(frm.fields_dict['address_html'].wrapper).html("");
frm.fields_dict['contact_html'] && $(frm.fields_dict['contact_html'].wrapper).html("");
},
render_address_and_contact: function(frm) {
// render address
$(frm.fields_dict['address_html'].wrapper)

View File

@ -14,6 +14,8 @@ frappe.ui.form.on("Customer", "refresh", function(frm) {
if(!frm.doc.__islocal) {
erpnext.utils.render_address_and_contact(frm);
} else {
erpnext.utils.clear_address_and_contact(frm);
}
var grid = cur_frm.get_field("sales_team").grid;

View File

@ -5,6 +5,7 @@ cur_frm.cscript.refresh = function(doc,dt,dn){
if(doc.__islocal){
hide_field(['address_html', 'contact_html']);
erpnext.utils.clear_address_and_contact(cur_frm);
}
else{
unhide_field(['address_html', 'contact_html']);

View File

@ -1,6 +1,6 @@
from setuptools import setup, find_packages
version = "6.7.3"
version = "6.7.4"
with open("requirements.txt", "r") as f:
install_requires = f.readlines()