From 0b80883088100ba4d23b559248f33a2a2e04d602 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 10 Apr 2013 15:28:23 +0530 Subject: [PATCH 1/2] [lead] [permission] cleanup of permission --- selling/doctype/lead/lead.txt | 71 +++++------------------------------ 1 file changed, 10 insertions(+), 61 deletions(-) diff --git a/selling/doctype/lead/lead.txt b/selling/doctype/lead/lead.txt index e162551607..2463f017c6 100644 --- a/selling/doctype/lead/lead.txt +++ b/selling/doctype/lead/lead.txt @@ -1,8 +1,8 @@ [ { - "creation": "2013-01-28 17:07:01", + "creation": "2013-04-10 11:45:37", "docstatus": 0, - "modified": "2013-03-26 14:05:01", + "modified": "2013-04-10 11:49:11", "modified_by": "Administrator", "owner": "Administrator" }, @@ -23,13 +23,18 @@ "permlevel": 0 }, { + "amend": 0, + "create": 1, "doctype": "DocPerm", "name": "__common__", "parent": "Lead", "parentfield": "permissions", "parenttype": "DocType", + "permlevel": 0, "read": 1, - "submit": 0 + "report": 1, + "submit": 0, + "write": 1 }, { "doctype": "DocType", @@ -445,69 +450,13 @@ "label": "Blog Subscriber" }, { - "create": 1, - "doctype": "DocPerm", - "permlevel": 0, - "report": 1, - "role": "Guest", - "write": 1 - }, - { - "amend": 0, - "cancel": 0, - "create": 0, - "doctype": "DocPerm", - "permlevel": 1, - "report": 0, - "role": "Sales User", - "write": 0 - }, - { - "amend": 0, - "cancel": 0, - "create": 0, - "doctype": "DocPerm", - "permlevel": 1, - "report": 0, - "role": "Sales Manager", - "write": 0 - }, - { - "amend": 0, "cancel": 1, - "create": 1, "doctype": "DocPerm", - "permlevel": 0, - "report": 1, - "role": "Sales Manager", - "write": 1 + "role": "Sales Manager" }, { - "amend": 0, "cancel": 0, - "create": 1, "doctype": "DocPerm", - "permlevel": 0, - "report": 1, - "role": "Sales User", - "write": 1 - }, - { - "amend": 0, - "cancel": 0, - "create": 0, - "doctype": "DocPerm", - "permlevel": 1, - "role": "All" - }, - { - "amend": 0, - "cancel": 0, - "create": 1, - "doctype": "DocPerm", - "permlevel": 0, - "report": 1, - "role": "System Manager", - "write": 1 + "role": "Sales User" } ] \ No newline at end of file From cad5c3414f32ef52d75437fe6417bab3954ef15a Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 10 Apr 2013 15:28:42 +0530 Subject: [PATCH 2/2] [serial no] [fix] removed transaction date passed for creating stock ledger entry --- stock/doctype/serial_no/serial_no.py | 1 - 1 file changed, 1 deletion(-) diff --git a/stock/doctype/serial_no/serial_no.py b/stock/doctype/serial_no/serial_no.py index 65bd2dd9c6..bbf55b35e3 100644 --- a/stock/doctype/serial_no/serial_no.py +++ b/stock/doctype/serial_no/serial_no.py @@ -79,7 +79,6 @@ class DocType(StockController): values = [{ 'item_code' : self.doc.item_code, 'warehouse' : self.doc.warehouse, - 'transaction_date' : nowdate(), 'posting_date' : self.doc.purchase_date or (self.doc.creation and self.doc.creation.split(' ')[0]) or nowdate(), 'posting_time' : self.doc.purchase_time or '00:00', 'voucher_type' : 'Serial No',