Browse Source

Made DocType in Print Format non-mandatory

version-14
Anand Doshi 13 years ago
parent
commit
e233a9c21e
2 changed files with 5 additions and 3 deletions
  1. +1
    -0
      py/core/doctype/print_format/print_format.py
  2. +4
    -3
      py/core/doctype/print_format/print_format.txt

+ 1
- 0
py/core/doctype/print_format/print_format.py View File

@@ -26,6 +26,7 @@ class DocType:
WHERE parent=%s WHERE parent=%s
AND parenttype='DocType' AND parenttype='DocType'
AND parentfield='formats'""", self.doc.doc_type)[0][0] AND parentfield='formats'""", self.doc.doc_type)[0][0]
if not max_idx: max_idx = 0
d = Document('DocFormat') d = Document('DocFormat')
d.parent = self.doc.doc_type d.parent = self.doc.doc_type
d.parenttype = 'DocType' d.parenttype = 'DocType'


+ 4
- 3
py/core/doctype/print_format/print_format.txt View File

@@ -5,14 +5,14 @@
{ {
'creation': '2009-05-12 11:19:11', 'creation': '2009-05-12 11:19:11',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-11-14 16:51:20',
'modified': '2011-11-15 17:56:52',
'modified_by': 'Administrator', 'modified_by': 'Administrator',
'owner': 'Administrator' 'owner': 'Administrator'
}, },


# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1321269659',
'_last_update': '1321354395',
'allow_copy': 0, 'allow_copy': 0,
'allow_email': 0, 'allow_email': 0,
'allow_print': 0, 'allow_print': 0,
@@ -29,7 +29,7 @@
'section_style': 'Simple', 'section_style': 'Simple',
'server_code_error': ' ', 'server_code_error': ' ',
'show_in_menu': 0, 'show_in_menu': 0,
'version': 8
'version': 10
}, },


# These values are common for all DocField # These values are common for all DocField
@@ -85,6 +85,7 @@


# DocField # DocField
{ {
'description': 'Associate a DocType to the Print Format',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'doc_type', 'fieldname': 'doc_type',
'fieldtype': 'Select', 'fieldtype': 'Select',


Loading…
Cancel
Save