From 00eba4d7f60d25f70ffb406498fc8cd97df10f45 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 27 Aug 2015 10:25:07 +0530 Subject: [PATCH] [minor] show price list in sales order (via support ticket) --- erpnext/buying/doctype/purchase_order/purchase_order.py | 3 +-- erpnext/public/js/controllers/transaction.js | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py index 58b1d1938d..66239d4439 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/purchase_order.py @@ -165,6 +165,7 @@ class PurchaseOrder(BuyingController): self.update_ordered_qty() msgprint(_("Status of {0} {1} is now {2}").format(self.doctype, self.name, status)) + self.notify_modified() def on_submit(self): super(PurchaseOrder, self).on_submit() @@ -237,8 +238,6 @@ def stop_or_unstop_purchase_orders(names, status): if po.status == "Stopped": po.update_status("Submitted") - po.notify_modified() - frappe.local.message_log = [] diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 09152ee402..c6b26bc48d 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -83,7 +83,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ refresh: function() { erpnext.toggle_naming_series(); erpnext.hide_company(); - this.hide_currency_and_price_list() this.show_item_wise_taxes(); this.set_dynamic_labels(); erpnext.pos.make_pos_btn(this.frm); @@ -140,14 +139,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ } }, - hide_currency_and_price_list: function() { - 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"); - } - }, - barcode: function(doc, cdt, cdn) { var d = locals[cdt][cdn]; if(d.barcode=="" || d.barcode==null) {