Bladeren bron

Made DocType in Print Format non-mandatory

version-14
Anand Doshi 13 jaren geleden
bovenliggende
commit
e233a9c21e
2 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  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 Bestand weergeven

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


+ 4
- 3
py/core/doctype/print_format/print_format.txt Bestand weergeven

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

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

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

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


Laden…
Annuleren
Opslaan