From 80a988c04f5b5e92708b5bace09ffd98a93fb750 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 7 Jul 2014 11:35:54 +0530 Subject: [PATCH] BugFix: selling_controller.py --- erpnext/controllers/selling_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index c6c2c14dfe..1049350c26 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals import frappe -from frappe.utils import cint, flt, _round, cstr +from frappe.utils import cint, flt, _round, cstr, comma_or from erpnext.setup.utils import get_company_currency from frappe import _, throw @@ -287,7 +287,7 @@ class SellingController(StockController): if not self.order_type: self.order_type = "Sales" elif self.order_type not in valid_types: - throw(_("Order Type must be one of {1}").comma_or(valid_types)) + throw(_("Order Type must be one of {0}").format(comma_or(valid_types))) def check_credit(self, grand_total): customer_account = frappe.db.get_value("Account", {"company": self.company,