Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Anand Doshi 2013-01-31 12:36:50 +05:30
commit 0ff3eedf4f
5 changed files with 34 additions and 39 deletions

View File

@ -51,7 +51,7 @@ class DocType:
ac.doc.doctype = "Account" ac.doc.doctype = "Account"
ac.doc.old_parent = "" ac.doc.old_parent = ""
ac.doc.freeze_account = "No" ac.doc.freeze_account = "No"
ac.ignore_permission = 1 ac.ignore_permissions = 1
ac.insert() ac.insert()
return ac.doc.name return ac.doc.name
@ -62,7 +62,7 @@ class DocType:
cc = webnotes.model_wrapper(eval(arg)) cc = webnotes.model_wrapper(eval(arg))
cc.doc.doctype = "Cost Center" cc.doc.doctype = "Cost Center"
cc.doc.old_parent = "" cc.doc.old_parent = ""
cc.ignore_permission = 1 cc.ignore_permissions = 1
cc.insert() cc.insert()
return cc.doc.name return cc.doc.name

View File

@ -117,6 +117,7 @@ erpnext.update_messages = function(reset) {
wn.call({ wn.call({
method: 'startup.startup.get_global_status_messages', method: 'startup.startup.get_global_status_messages',
type:"GET",
callback: set_messages callback: set_messages
}); });

View File

@ -1,37 +1,29 @@
[ [
{ {
'add_col': None, "creation": "2012-05-14 18:20:52",
'add_cond': None, "docstatus": 0,
'add_tab': None, "modified": "2013-01-30 15:19:07",
'columns': 'Sales Order\x01ID,Sales Order\x01Status,Sales Order\x01Sales Order Date,Sales Order\x01Customer,Sales Order\x01P.O. No,Sales Order\x01Grand Total', "modified_by": "Administrator",
'creation': '2010-08-08 17:09:31', "owner": "Administrator"
'criteria_name': 'Draft Sales Orders', },
'custom_query': '', {
'description': 'List of Open Sales orders filtered by period, customer and other details', "columns": "Sales Order\u0001ID,Sales Order\u0001Status,Sales Order\u0001Sales Order Date,Sales Order\u0001Customer,Sales Order\u0001P.O. No,Sales Order\u0001Currency,Sales Order\u0001Grand Total (Export)",
'dis_filters': None, "criteria_name": "Draft Sales Orders",
'disabled': None, "custom_query": "",
'doc_type': 'Sales Order', "description": "List of Open Sales orders filtered by period, customer and other details",
'docstatus': 0, "doc_type": "Sales Order",
'doctype': 'Search Criteria', "doctype": "Search Criteria",
'filters': "{'Sales Order\x01Saved':1,'Sales Order\x01Submitted':1,'Sales Order\x01Status':'Draft','Sales Order\x01Fiscal Year':''}", "filters": "{\"Sales Order\\u0001Saved\":1,\"Sales Order\\u0001Submitted\":1,\"Sales Order\\u0001To Sales Order Date\\u0001upper\":\"2013-01-30\",\"Sales Order\\u0001Company\":\"Alpha\",\"Sales Order\\u0001Fiscal Year\":[\"\"],\"Sales Order\\u0001Status\":[\"Draft\"]}",
'graph_series': None, "module": "Selling",
'graph_values': None, "name": "__common__",
'group_by': None, "page_len": 50,
'idx': None, "report_script": null,
'modified': '2010-06-01 15:19:41', "sort_by": "`tabSales Order`.`name`",
'modified_by': 'Administrator', "sort_order": "DESC",
'module': 'CRM', "standard": "Yes"
'name': 'draft_sales_orders', },
'owner': 'Administrator', {
'page_len': 50, "doctype": "Search Criteria",
'parent': None, "name": "draft_sales_orders"
'parent_doc_type': None, }
'parentfield': None,
'parenttype': None,
'report_script': None,
'server_script': None,
'sort_by': '`tabSales Order`.`name`',
'sort_order': 'DESC',
'standard': 'Yes'
}
] ]

View File

@ -25,9 +25,11 @@ def on_login_post_session(login_manager):
# create feed # create feed
from webnotes.utils import nowtime from webnotes.utils import nowtime
from webnotes.profile import get_user_fullname from webnotes.profile import get_user_fullname
webnotes.conn.begin()
home.make_feed('Login', 'Profile', login_manager.user, login_manager.user, home.make_feed('Login', 'Profile', login_manager.user, login_manager.user,
'%s logged in at %s' % (get_user_fullname(login_manager.user), nowtime()), '%s logged in at %s' % (get_user_fullname(login_manager.user), nowtime()),
login_manager.user=='Administrator' and '#8CA2B3' or '#1B750D') login_manager.user=='Administrator' and '#8CA2B3' or '#1B750D')
webnotes.conn.commit()
def comment_added(doc): def comment_added(doc):

View File

@ -46,7 +46,7 @@
<input name="comment_by" placeholder="Your Email Id" /> <input name="comment_by" placeholder="Your Email Id" />
</p> </p>
<p> <p>
<textarea name="comment" placeholder="Comment" /> <textarea name="comment" placeholder="Comment" style="width: 300px; height: 120px;"/>
</textarea> </textarea>
</p> </p>
<p> <p>