diff --git a/erpnext/__version__.py b/erpnext/__version__.py index a2bbbf74c4f..b34f021c31c 100644 --- a/erpnext/__version__.py +++ b/erpnext/__version__.py @@ -1,2 +1,2 @@ from __future__ import unicode_literals -__version__ = '5.5.0' +__version__ = '5.5.1' diff --git a/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py b/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py index 7729d22377d..ce3a7fddb75 100644 --- a/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py +++ b/erpnext/accounts/doctype/account/chart_of_accounts/chart_of_accounts.py @@ -92,13 +92,13 @@ def get_charts_for_country(country): with open(os.path.join(path, fname), "r") as f: _get_chart_name(f.read()) - countries_use_OHADA_system = ["Benin", "Burkina Faso", "Cameroon", "Central African Republic", "Comoros", - "Congo", "Ivory Coast", "Gabon", "Guinea", "Guinea Bissau", "Equatorial Guinea", "Mali", "Niger", - "Replica of Democratic Congo", "Senegal", "Chad", "Togo"] - - if country in countries_use_OHADA_system: - with open(os.path.join(os.path.dirname(__file__), "syscohada_syscohada_chart_template.json"), "r") as f: - _get_chart_name(f.read()) + # countries_use_OHADA_system = ["Benin", "Burkina Faso", "Cameroon", "Central African Republic", "Comoros", + # "Congo", "Ivory Coast", "Gabon", "Guinea", "Guinea Bissau", "Equatorial Guinea", "Mali", "Niger", + # "Replica of Democratic Congo", "Senegal", "Chad", "Togo"] + # + # if country in countries_use_OHADA_system: + # with open(os.path.join(os.path.dirname(__file__), "syscohada_syscohada_chart_template.json"), "r") as f: + # _get_chart_name(f.read()) if len(charts) != 1: charts.append("Standard") diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index 7fd8febd4f7..5ccf29d5033 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -112,8 +112,8 @@ class BuyingController(StockController): valuation_amount_adjustment -= item.item_tax_amount self.round_floats_in(item) - - item.conversion_factor = get_conversion_factor(item.item_code, item.uom).get("conversion_factor") or 1.0 + if flt(item.conversion_factor)==0: + item.conversion_factor = get_conversion_factor(item.item_code, item.uom).get("conversion_factor") or 1.0 qty_in_stock_uom = flt(item.qty * item.conversion_factor) rm_supp_cost = flt(item.rm_supp_cost) if self.doctype=="Purchase Receipt" else 0.0 diff --git a/erpnext/crm/doctype/newsletter/newsletter.py b/erpnext/crm/doctype/newsletter/newsletter.py index 30fd101e354..83d3caf37ae 100644 --- a/erpnext/crm/doctype/newsletter/newsletter.py +++ b/erpnext/crm/doctype/newsletter/newsletter.py @@ -138,8 +138,6 @@ def subscribe(email): _("Click here to verify") ) - print url - content = """
{0}. {1}.
diff --git a/erpnext/hooks.py b/erpnext/hooks.py index e973b9f7ff7..79f70f742bd 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -27,7 +27,7 @@ blogs. """ app_icon = "icon-th" app_color = "#e74c3c" -app_version = "5.5.0" +app_version = "5.5.1" github_link = "https://github.com/frappe/erpnext" error_report_email = "support@erpnext.com" diff --git a/erpnext/manufacturing/doctype/production_order/production_order.js b/erpnext/manufacturing/doctype/production_order/production_order.js index 8202f437599..657756d7578 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.js +++ b/erpnext/manufacturing/doctype/production_order/production_order.js @@ -152,7 +152,9 @@ $.extend(cur_frm.cscript, { method: "erpnext.manufacturing.doctype.production_order.production_order.get_item_details", args: { item: doc.production_item }, callback: function(r) { - cur_frm.set_value(r.message); + $.each(["description", "stock_uom", "bom_no"], function(i, field) { + cur_frm.set_value(field, r.message[field]); + }); } }); }, @@ -187,8 +189,8 @@ $.extend(cur_frm.cscript, { bom_no: function() { return this.frm.call({ - doc: this.frm.doc, - method: "set_production_order_operations" + doc: this.frm.doc, + method: "set_production_order_operations" }); }, diff --git a/erpnext/public/js/conf.js b/erpnext/public/js/conf.js index af06b33f581..1191c47a610 100644 --- a/erpnext/public/js/conf.js +++ b/erpnext/public/js/conf.js @@ -11,7 +11,8 @@ $(document).bind('toolbar_setup', function() { href="https://discuss.erpnext.com">Feedback' - $('.navbar-home').html('