more fixes to perms, floats and default enabled / disabled in search

This commit is contained in:
Rushabh Mehta
2013-01-23 10:09:28 +05:30
parent efe8102351
commit 6382a42dbe
25 changed files with 330 additions and 290 deletions

View File

@@ -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):
"""

View File

@@ -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
},
{