diff --git a/patches/patch.py b/patches/patch.py index 87b2f78f101..91e8f73e5b3 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1,7 +1,7 @@ # REMEMBER to update this # ======================== -last_patch = 322 +last_patch = 323 #------------------------------------------- @@ -1285,3 +1285,7 @@ def execute(patch_no): reload_doc('hr','doctype','leave_application') elif patch_no == 322: sql("delete from `tabDocField` where parent = 'Leave Application' and fieldname = 'latter_head'") + elif patch_no == 323: + reload_doc('stock', 'doctype', 'stock_entry') + sql("update `tabDocField` set options = 'get_stock_and_rate' where parent = 'Stock Entry' and label = 'Get Current Stock'") + diff --git a/stock/doctype/stock_entry/stock_entry.txt b/stock/doctype/stock_entry/stock_entry.txt index 6959d4d8e3a..5232e3239e2 100644 --- a/stock/doctype/stock_entry/stock_entry.txt +++ b/stock/doctype/stock_entry/stock_entry.txt @@ -3,28 +3,44 @@ # These values are common in all dictionaries { - 'creation': '2010-08-08 17:09:25', + 'creation': '2009-05-12 16:46:45', 'docstatus': 0, - 'modified': '2011-06-14 12:50:12', + 'modified': '2011-07-10 13:47:21', 'modified_by': 'Administrator', 'owner': 'Administrator' }, # These values are common for all DocType { - '_last_update': '1308741898', + '_last_update': '1310210532', + 'allow_attach': 0, + 'allow_copy': 0, + 'allow_email': 0, + 'allow_print': 0, + 'allow_rename': 0, + 'allow_trash': 0, 'colour': 'White:FFF', 'doctype': 'DocType', + 'hide_heading': 0, + 'hide_toolbar': 0, + 'in_create': 0, + 'in_dialog': 0, + 'is_transaction_doc': 0, + 'issingle': 0, + 'max_attachments': 0, 'module': 'Stock', 'name': '__common__', 'print_outline': 'No', + 'read_only': 0, + 'read_only_onload': 0, 'search_fields': 'transfer_date, from_warehouse, to_warehouse, purpose, remarks', 'section_style': 'Tabbed', 'server_code_error': ' ', 'show_in_menu': 0, 'subject': '%(remarks)s', 'tag_fields': 'purpose', - 'version': 243 + 'use_template': 0, + 'version': 1 }, # These values are common for all DocField @@ -60,7 +76,7 @@ 'doctype': 'DocPerm', 'idx': 1, 'permlevel': 0, - 'role': 'Material Manager', + 'role': 'Material User', 'submit': 1, 'write': 1 }, @@ -73,35 +89,28 @@ 'doctype': 'DocPerm', 'idx': 2, 'permlevel': 1, - 'role': 'Material Manager', + 'role': 'Material User', 'submit': 0, 'write': 0 }, # DocPerm { - 'amend': 1, - 'cancel': 1, - 'create': 1, + 'create': 0, 'doctype': 'DocPerm', 'idx': 3, - 'permlevel': 0, - 'role': 'Material User', - 'submit': 1, + 'permlevel': 2, + 'role': 'Production User', 'write': 1 }, # DocPerm { - 'amend': 0, - 'cancel': 0, - 'create': 0, 'doctype': 'DocPerm', 'idx': 4, - 'permlevel': 1, - 'role': 'Material User', - 'submit': 0, - 'write': 0 + 'permlevel': 2, + 'role': 'Production Manager', + 'write': 1 }, # DocPerm @@ -125,23 +134,13 @@ 'role': 'Production User' }, - # DocPerm - { - 'create': 0, - 'doctype': 'DocPerm', - 'idx': 7, - 'permlevel': 2, - 'role': 'Production User', - 'write': 1 - }, - # DocPerm { 'amend': 1, 'cancel': 1, 'create': 1, 'doctype': 'DocPerm', - 'idx': 8, + 'idx': 7, 'permlevel': 0, 'role': 'Production Manager', 'submit': 1, @@ -151,17 +150,34 @@ # DocPerm { 'doctype': 'DocPerm', - 'idx': 9, + 'idx': 8, 'permlevel': 1, 'role': 'Production Manager' }, # DocPerm { + 'amend': 0, + 'cancel': 0, + 'create': 0, + 'doctype': 'DocPerm', + 'idx': 9, + 'permlevel': 1, + 'role': 'Material Manager', + 'submit': 0, + 'write': 0 + }, + + # DocPerm + { + 'amend': 1, + 'cancel': 1, + 'create': 1, 'doctype': 'DocPerm', 'idx': 10, - 'permlevel': 2, - 'role': 'Production Manager', + 'permlevel': 0, + 'role': 'Material Manager', + 'submit': 1, 'write': 1 }, @@ -187,85 +203,114 @@ # DocField { + 'allow_on_submit': 0, 'colour': 'White:FFF', 'description': 'To manage multiple series please go to Setup > Manage Series', 'doctype': 'DocField', 'fieldname': 'naming_series', 'fieldtype': 'Select', + 'hidden': 0, 'idx': 3, + 'in_filter': 0, 'label': 'Series', 'no_copy': 1, 'oldfieldname': 'naming_series', 'oldfieldtype': 'Select', - 'options': 'STE', + 'options': '\nSTE', 'permlevel': 0, 'print_hide': 1, - 'reqd': 1 + 'report_hide': 0, + 'reqd': 1, + 'search_index': 0 }, # DocField { + 'allow_on_submit': 0, 'description': 'The date at which current entry is corrected in the system.', 'doctype': 'DocField', 'fieldname': 'amendment_date', 'fieldtype': 'Date', + 'hidden': 0, 'idx': 4, + 'in_filter': 0, 'label': 'Amendment Date', 'no_copy': 1, 'oldfieldname': 'amendment_date', 'oldfieldtype': 'Date', 'permlevel': 0, - 'print_hide': 1 + 'print_hide': 1, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0 }, # DocField { + 'allow_on_submit': 0, 'colour': 'White:FFF', 'doctype': 'DocField', 'fieldname': 'purpose', 'fieldtype': 'Select', + 'hidden': 0, 'idx': 5, 'in_filter': 1, 'label': 'Purpose', + 'no_copy': 0, 'oldfieldname': 'purpose', 'oldfieldtype': 'Select', 'options': 'Material Issue\nMaterial Receipt\nMaterial Transfer\nSales Return\nPurchase Return\nSubcontracting\nProduction Order', 'permlevel': 0, + 'print_hide': 0, + 'report_hide': 0, 'reqd': 1, + 'search_index': 0, 'trigger': 'Client' }, # DocField { + 'allow_on_submit': 0, 'colour': 'White:FFF', 'doctype': 'DocField', 'fieldname': 'delivery_note_no', 'fieldtype': 'Link', 'hidden': 1, 'idx': 6, + 'in_filter': 0, 'label': 'Delivery Note No', + 'no_copy': 0, 'oldfieldname': 'delivery_note_no', 'oldfieldtype': 'Link', 'options': 'Delivery Note', 'permlevel': 0, 'print_hide': 1, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0, 'trigger': 'Client' }, # DocField { + 'allow_on_submit': 0, 'colour': 'White:FFF', 'doctype': 'DocField', 'fieldname': 'purchase_receipt_no', 'fieldtype': 'Link', 'hidden': 1, 'idx': 7, + 'in_filter': 0, 'label': 'Purchase Receipt No', + 'no_copy': 0, 'oldfieldname': 'purchase_receipt_no', 'oldfieldtype': 'Link', 'options': 'Purchase Receipt', 'permlevel': 0, 'print_hide': 1, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0, 'trigger': 'Client' }, @@ -284,93 +329,135 @@ # DocField { + 'allow_on_submit': 0, 'colour': 'White:FFF', 'doctype': 'DocField', 'fieldname': 'supplier', 'fieldtype': 'Link', 'hidden': 1, 'idx': 9, + 'in_filter': 0, 'label': 'Supplier', + 'no_copy': 0, 'oldfieldname': 'supplier', 'oldfieldtype': 'Link', 'options': 'Supplier', 'permlevel': 0, 'print_hide': 1, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0, 'trigger': 'Client' }, # DocField { + 'allow_on_submit': 0, 'doctype': 'DocField', 'fieldname': 'supplier_name', 'fieldtype': 'Data', + 'hidden': 0, 'idx': 10, + 'in_filter': 0, 'label': 'Supplier Name', + 'no_copy': 0, 'oldfieldname': 'supplier_name', 'oldfieldtype': 'Data', - 'permlevel': 1 + 'permlevel': 1, + 'print_hide': 0, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0 }, # DocField { + 'allow_on_submit': 0, 'colour': 'White:FFF', 'doctype': 'DocField', 'fieldname': 'supplier_address', 'fieldtype': 'Small Text', 'hidden': 1, 'idx': 11, + 'in_filter': 0, 'label': 'Supplier Address', + 'no_copy': 0, 'oldfieldname': 'supplier_address', 'oldfieldtype': 'Small Text', 'permlevel': 0, + 'print_hide': 0, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0, 'trigger': 'Client' }, # DocField { + 'allow_on_submit': 0, 'colour': 'White:FFF', 'doctype': 'DocField', 'fieldname': 'customer', 'fieldtype': 'Link', 'hidden': 1, 'idx': 12, + 'in_filter': 0, 'label': 'Customer', + 'no_copy': 0, 'oldfieldname': 'customer', 'oldfieldtype': 'Link', 'options': 'Customer', 'permlevel': 0, 'print_hide': 1, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0, 'trigger': 'Client' }, # DocField { + 'allow_on_submit': 0, 'doctype': 'DocField', 'fieldname': 'customer_name', 'fieldtype': 'Data', 'hidden': 1, 'idx': 13, + 'in_filter': 0, 'label': 'Customer Name', + 'no_copy': 0, 'oldfieldname': 'customer_name', 'oldfieldtype': 'Data', - 'permlevel': 1 + 'permlevel': 1, + 'print_hide': 0, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0 }, # DocField { + 'allow_on_submit': 0, 'doctype': 'DocField', 'fieldname': 'customer_address', 'fieldtype': 'Small Text', 'hidden': 1, 'idx': 14, + 'in_filter': 0, 'label': 'Customer Address', + 'no_copy': 0, 'oldfieldname': 'customer_address', 'oldfieldtype': 'Small Text', - 'permlevel': 0 + 'permlevel': 0, + 'print_hide': 0, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0 }, # DocField { + 'allow_on_submit': 0, 'colour': 'White:FFF', 'doctype': 'DocField', 'fieldname': 'process', @@ -379,16 +466,21 @@ 'idx': 15, 'in_filter': 1, 'label': 'Process', + 'no_copy': 0, 'oldfieldname': 'process', 'oldfieldtype': 'Select', 'options': '\nMaterial Transfer\nBackflush', 'permlevel': 2, 'print_hide': 1, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0, 'trigger': 'Client' }, # DocField { + 'allow_on_submit': 0, 'colour': 'White:FFF', 'doctype': 'DocField', 'fieldname': 'production_order', @@ -397,74 +489,99 @@ 'idx': 16, 'in_filter': 1, 'label': 'Production Order', + 'no_copy': 0, 'oldfieldname': 'production_order', 'oldfieldtype': 'Link', 'options': 'Production Order', 'permlevel': 2, 'print_hide': 1, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0, 'trigger': 'Client' }, # DocField { + 'allow_on_submit': 0, 'doctype': 'DocField', 'fieldname': 'fg_completed_qty', 'fieldtype': 'Currency', + 'hidden': 0, 'idx': 17, + 'in_filter': 0, 'label': 'FG Completed Qty', + 'no_copy': 0, 'oldfieldname': 'fg_completed_qty', 'oldfieldtype': 'Currency', 'permlevel': 2, 'print_hide': 1, + 'report_hide': 0, + 'reqd': 0, + 'search_index': 0, 'trigger': 'Client' }, # DocField { - 'colour': 'White:FFF', + 'allow_on_submit': 0, 'doctype': 'DocField', 'fieldtype': 'HTML', + 'hidden': 0, 'idx': 18, + 'in_filter': 0, 'label': 'Warehouse HTML', 'no_copy': 0, 'oldfieldtype': 'HTML', 'options': "