minor fix

This commit is contained in:
Nabin Hait 2015-05-26 10:47:52 +05:30
parent 822fd7747a
commit 093beecd0a
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import frappe
def execute():
frappe.reload_doctype("System Settings")
ss = frappe.get_doc("System Settings", "System Settings")
ss.email_footer_address = frappe.db.get_default("company")
ss.save()

View File

@ -98,7 +98,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
},
hide_currency_and_price_list: function() {
if(this.frm.doc.docstatus > 0) {
if(this.frm.doc.conversion_rate == 1 && this.frm.doc.docstatus > 0) {
hide_field("currency_and_price_list");
} else {
unhide_field("currency_and_price_list");