mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
more fixes to perms, floats and default enabled / disabled in search
This commit is contained in:
@@ -213,7 +213,9 @@ class DocType:
|
||||
cc = sql("select name from `tabCost Center` where cost_center_name = 'Root' and company_name = '%s'"%(self.doc.name))
|
||||
if not cc:
|
||||
self.create_default_cost_center()
|
||||
|
||||
|
||||
if self.doc.default_currency:
|
||||
webnotes.conn.set_value("Currency", self.doc.default_currency, "enabled", 1)
|
||||
|
||||
def on_trash(self):
|
||||
"""
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{
|
||||
"creation": "2013-01-10 16:34:22",
|
||||
"docstatus": 0,
|
||||
"modified": "2013-01-22 14:55:58",
|
||||
"modified": "2013-01-22 16:54:47",
|
||||
"modified_by": "Administrator",
|
||||
"owner": "Administrator"
|
||||
},
|
||||
@@ -86,9 +86,9 @@
|
||||
{
|
||||
"doctype": "DocField",
|
||||
"fieldname": "default_currency",
|
||||
"fieldtype": "Select",
|
||||
"fieldtype": "Link",
|
||||
"label": "Default Currency",
|
||||
"options": "link:Currency",
|
||||
"options": "Currency",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user