Set allow_on_submit for 'page_break', 'letter_head', 'select_print_heading', 'print_heading'. Fixes frappe/erpnext#1810

This commit is contained in:
Anand Doshi 2014-09-09 15:25:21 +05:30
parent 6e566fb154
commit fc33d5a75b
28 changed files with 740 additions and 723 deletions

View File

@ -339,6 +339,7 @@
"read_only": 0
},
{
"allow_on_submit": 1,
"fieldname": "letter_head",
"fieldtype": "Link",
"label": "Letter Head",
@ -446,7 +447,7 @@
"icon": "icon-file-text",
"idx": 1,
"is_submittable": 1,
"modified": "2014-08-14 01:37:14.822939",
"modified": "2014-09-09 05:35:31.217863",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Journal Voucher",

View File

@ -171,6 +171,7 @@
"read_only": 0
},
{
"allow_on_submit": 1,
"fieldname": "letter_head",
"fieldtype": "Link",
"label": "Letter Head",
@ -192,6 +193,7 @@
"read_only": 0
},
{
"allow_on_submit": 1,
"fieldname": "select_print_heading",
"fieldtype": "Link",
"in_filter": 0,
@ -205,7 +207,7 @@
],
"icon": "icon-cog",
"idx": 1,
"modified": "2014-06-23 16:40:59.510132",
"modified": "2014-09-09 05:35:31.969193",
"modified_by": "Administrator",
"module": "Accounts",
"name": "POS Setting",

View File

@ -0,0 +1,10 @@
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors and Contributors
# See license.txt
import frappe
import unittest
test_records = frappe.get_test_records('POS Setting')
class TestPOSSetting(unittest.TestCase):
pass

View File

@ -0,0 +1 @@
[]

File diff suppressed because it is too large Load Diff

View File

@ -399,7 +399,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-08 08:06:30.027289",
"modified": "2014-09-09 05:35:35.712453",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Purchase Invoice Item",

View File

@ -1,5 +1,4 @@
{
"allow_attach": 1,
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-05-24 19:29:05",
@ -1193,7 +1192,7 @@
"icon": "icon-file-text",
"idx": 1,
"is_submittable": 1,
"modified": "2014-08-28 11:21:00.726344",
"modified": "2014-09-09 05:35:34.121045",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Sales Invoice",

View File

@ -439,7 +439,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-08 08:06:30.382092",
"modified": "2014-09-09 05:35:36.019576",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Sales Invoice Item",

View File

@ -1,5 +1,5 @@
{
"allow_import": 1,
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-05-21 16:16:39",
"docstatus": 0,
@ -649,7 +649,7 @@
"icon": "icon-file-text",
"idx": 1,
"is_submittable": 1,
"modified": "2014-08-12 05:22:53.496614",
"modified": "2014-09-09 05:35:32.583024",
"modified_by": "Administrator",
"module": "Buying",
"name": "Purchase Order",

View File

@ -445,7 +445,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-08 08:06:30.684601",
"modified": "2014-09-09 05:35:36.346557",
"modified_by": "Administrator",
"module": "Buying",
"name": "Purchase Order Item",

View File

@ -1,5 +1,5 @@
{
"allow_import": 1,
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-05-21 16:16:45",
"docstatus": 0,
@ -575,7 +575,7 @@
"icon": "icon-shopping-cart",
"idx": 1,
"is_submittable": 1,
"modified": "2014-08-14 02:17:26.401532",
"modified": "2014-09-09 05:35:35.369734",
"modified_by": "Administrator",
"module": "Buying",
"name": "Supplier Quotation",

View File

@ -331,7 +331,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-08 08:06:30.976906",
"modified": "2014-09-09 05:35:36.623995",
"modified_by": "Administrator",
"module": "Buying",
"name": "Supplier Quotation Item",

View File

@ -158,6 +158,7 @@
"reqd": 1
},
{
"allow_on_submit": 1,
"fieldname": "letter_head",
"fieldtype": "Link",
"ignore_user_permissions": 1,
@ -183,7 +184,7 @@
"idx": 1,
"is_submittable": 1,
"max_attachments": 3,
"modified": "2014-08-28 03:32:38.865202",
"modified": "2014-09-09 05:35:31.531651",
"modified_by": "Administrator",
"module": "HR",
"name": "Leave Application",

View File

@ -72,6 +72,7 @@
"search_index": 0
},
{
"allow_on_submit": 1,
"fieldname": "letter_head",
"fieldtype": "Link",
"ignore_user_permissions": 1,
@ -336,7 +337,7 @@
"icon": "icon-file-text",
"idx": 1,
"is_submittable": 1,
"modified": "2014-08-27 06:38:10.006224",
"modified": "2014-09-09 05:35:33.807228",
"modified_by": "Administrator",
"module": "HR",
"name": "Salary Slip",

View File

@ -1,5 +1,5 @@
{
"allow_import": 1,
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-05-24 19:29:08",
"docstatus": 0,
@ -832,7 +832,7 @@
"idx": 1,
"is_submittable": 1,
"max_attachments": 1,
"modified": "2014-08-12 05:04:36.157045",
"modified": "2014-09-09 05:35:33.413559",
"modified_by": "Administrator",
"module": "Selling",
"name": "Quotation",

View File

@ -332,7 +332,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-08 08:06:31.198440",
"modified": "2014-09-09 05:35:36.871532",
"modified_by": "Administrator",
"module": "Selling",
"name": "Quotation Item",

View File

@ -1,5 +1,4 @@
{
"allow_attach": 1,
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-06-18 12:39:59",
@ -1021,7 +1020,7 @@
"idx": 1,
"is_submittable": 1,
"issingle": 0,
"modified": "2014-08-28 11:22:10.959416",
"modified": "2014-09-09 05:35:34.761247",
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order",

View File

@ -415,7 +415,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-08 08:06:31.435020",
"modified": "2014-09-09 05:35:37.173841",
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order Item",

View File

@ -7,6 +7,7 @@
"document_type": "Master",
"fields": [
{
"allow_on_submit": 1,
"fieldname": "print_heading",
"fieldtype": "Data",
"in_filter": 1,
@ -30,7 +31,7 @@
],
"icon": "icon-font",
"idx": 1,
"modified": "2014-05-27 03:49:14.944690",
"modified": "2014-09-09 05:35:39.239327",
"modified_by": "Administrator",
"module": "Setup",
"name": "Print Heading",

View File

@ -1,5 +1,5 @@
{
"autoname": "naming_series:",
"autoname": "naming_series:",
"creation": "2013-05-24 19:29:09",
"docstatus": 0,
"doctype": "DocType",
@ -1013,7 +1013,7 @@
"idx": 1,
"in_create": 0,
"is_submittable": 1,
"modified": "2014-08-12 05:23:55.104153",
"modified": "2014-09-09 05:35:30.700911",
"modified_by": "Administrator",
"module": "Stock",
"name": "Delivery Note",

View File

@ -426,7 +426,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-08 08:06:31.703783",
"modified": "2014-09-09 05:35:37.460939",
"modified_by": "Administrator",
"module": "Stock",
"name": "Delivery Note Item",

View File

@ -1,5 +1,5 @@
{
"allow_import": 1,
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-03-07 14:48:38",
"docstatus": 0,
@ -235,7 +235,7 @@
"icon": "icon-ticket",
"idx": 1,
"is_submittable": 1,
"modified": "2014-08-11 07:11:55.802625",
"modified": "2014-09-09 05:35:31.735821",
"modified_by": "Administrator",
"module": "Stock",
"name": "Material Request",

View File

@ -235,7 +235,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-08-14 08:37:28.991681",
"modified": "2014-09-09 05:35:37.746067",
"modified_by": "Administrator",
"module": "Stock",
"name": "Material Request Item",

View File

@ -151,7 +151,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-08-11 06:23:08.597647",
"modified": "2014-09-09 05:35:38.216185",
"modified_by": "Administrator",
"module": "Stock",
"name": "Packed Item",

View File

@ -1,6 +1,6 @@
{
"autoname": "PSD/.#######",
"creation": "2013-04-08 13:10:16.000000",
"creation": "2013-04-08 13:10:16",
"docstatus": 0,
"doctype": "DocType",
"fields": [
@ -70,6 +70,7 @@
"width": "100px"
},
{
"allow_on_submit": 1,
"fieldname": "page_break",
"fieldtype": "Check",
"in_list_view": 1,
@ -89,9 +90,10 @@
],
"idx": 1,
"istable": 1,
"modified": "2013-12-20 19:23:23.000000",
"modified": "2014-09-09 05:35:38.604554",
"modified_by": "Administrator",
"module": "Stock",
"name": "Packing Slip Item",
"owner": "Administrator"
"owner": "Administrator",
"permissions": []
}

View File

@ -1,5 +1,5 @@
{
"autoname": "naming_series:",
"autoname": "naming_series:",
"creation": "2013-05-21 16:16:39",
"docstatus": 0,
"doctype": "DocType",
@ -766,7 +766,7 @@
"icon": "icon-truck",
"idx": 1,
"is_submittable": 1,
"modified": "2014-08-12 05:23:28.960161",
"modified": "2014-09-09 05:35:32.971576",
"modified_by": "Administrator",
"module": "Stock",
"name": "Purchase Receipt",

View File

@ -549,7 +549,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-08 08:06:31.957563",
"modified": "2014-09-09 05:35:38.908372",
"modified_by": "Administrator",
"module": "Stock",
"name": "Purchase Receipt Item",

View File

@ -531,7 +531,7 @@
"search_index": 0
},
{
"allow_on_submit": 0,
"allow_on_submit": 1,
"fieldname": "select_print_heading",
"fieldtype": "Link",
"hidden": 0,
@ -577,7 +577,7 @@
"is_submittable": 1,
"issingle": 0,
"max_attachments": 0,
"modified": "2014-09-03 11:01:23.159584",
"modified": "2014-09-09 05:35:39.352951",
"modified_by": "Administrator",
"module": "Stock",
"name": "Stock Entry",