Merge branch 'master' into develop
This commit is contained in:
commit
7a1c40c7c1
@ -5,7 +5,7 @@ import frappe
|
||||
from erpnext.hooks import regional_overrides
|
||||
from frappe.utils import getdate
|
||||
|
||||
__version__ = '11.1.1'
|
||||
__version__ = '11.1.2'
|
||||
|
||||
def get_default_company(user=None):
|
||||
'''Get default company for user'''
|
||||
|
@ -642,6 +642,7 @@
|
||||
"bold": 0,
|
||||
"collapsible": 0,
|
||||
"columns": 0,
|
||||
"default": "Valuation Rate",
|
||||
"fieldname": "rm_cost_as_per",
|
||||
"fieldtype": "Select",
|
||||
"hidden": 0,
|
||||
@ -1977,7 +1978,7 @@
|
||||
"issingle": 0,
|
||||
"istable": 0,
|
||||
"max_attachments": 0,
|
||||
"modified": "2018-12-13 17:45:44.843197",
|
||||
"modified": "2019-01-30 16:39:34.353721",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Manufacturing",
|
||||
"name": "BOM",
|
||||
|
@ -163,6 +163,8 @@ class BOM(WebsiteGenerator):
|
||||
def get_rm_rate(self, arg):
|
||||
""" Get raw material rate as per selected method, if bom exists takes bom cost """
|
||||
rate = 0
|
||||
if not self.rm_cost_as_per:
|
||||
self.rm_cost_as_per = "Valuation Rate"
|
||||
|
||||
if arg.get('scrap_items'):
|
||||
rate = self.get_valuation_rate(arg)
|
||||
|
@ -3,8 +3,10 @@ import frappe
|
||||
|
||||
def execute():
|
||||
if 'Education' in frappe.get_active_domains() and not frappe.db.exists("Role", "Guardian"):
|
||||
frappe.new_doc({
|
||||
"doctype": "Role",
|
||||
doc = frappe.new_doc("Role")
|
||||
doc.update({
|
||||
"role_name": "Guardian",
|
||||
"desk_access": 0
|
||||
}).insert(ignore_permissions=True)
|
||||
})
|
||||
|
||||
doc.insert(ignore_permissions=True)
|
||||
|
@ -10,7 +10,7 @@
|
||||
<script>
|
||||
frappe.ready(function() {
|
||||
var txt = frappe.utils.get_url_arg("search");
|
||||
$(".search-results").html('{{ _("Search results for") + ": " + html2text(frappe.form_dict.search or "")|trim }}');
|
||||
$(".search-results").html('{{ _("Search results for") + ": " + html2text(frappe.form_dict.search or "") | e | trim }}');
|
||||
window.search = txt;
|
||||
window.start = 0;
|
||||
window.get_product_list();
|
||||
|
Loading…
x
Reference in New Issue
Block a user