Kaynağa Gözat

Merge branch 'hotfix'

version-14
mbauskar 7 yıl önce
ebeveyn
işleme
52a7b5b0b9
3 değiştirilmiş dosya ile 8 ekleme ve 4 silme
  1. +1
    -1
      frappe/__init__.py
  2. +1
    -0
      frappe/core/doctype/doctype/doctype.py
  3. +6
    -3
      frappe/utils/pdf.py

+ 1
- 1
frappe/__init__.py Dosyayı Görüntüle

@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
from .exceptions import * from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template


__version__ = '9.1.0'
__version__ = '9.1.1'
__title__ = "Frappe Framework" __title__ = "Frappe Framework"


local = Local() local = Local()


+ 1
- 0
frappe/core/doctype/doctype/doctype.py Dosyayı Görüntüle

@@ -637,6 +637,7 @@ def validate_fields(meta):
check_timeline_field(meta) check_timeline_field(meta)
check_is_published_field(meta) check_is_published_field(meta)
check_sort_field(meta) check_sort_field(meta)
check_image_field(meta)


def validate_permissions_for_doctype(doctype, for_remove=False): def validate_permissions_for_doctype(doctype, for_remove=False):
"""Validates if permissions are set correctly.""" """Validates if permissions are set correctly."""


+ 6
- 3
frappe/utils/pdf.py Dosyayı Görüntüle

@@ -64,9 +64,7 @@ def prepare_options(html, options):


# defaults # defaults
'margin-right': '15mm', 'margin-right': '15mm',
'margin-left': '15mm',
'margin-top': '15mm',
'margin-bottom': '15mm',
'margin-left': '15mm'
}) })


html, html_options = read_options_from_html(html) html, html_options = read_options_from_html(html)
@@ -135,6 +133,11 @@ def prepare_header_footer(soup):


# {"header-html": "/tmp/frappe-pdf-random.html"} # {"header-html": "/tmp/frappe-pdf-random.html"}
options[html_id] = fname options[html_id] = fname
else:
if html_id == "header-html":
options["margin-top"] = "15mm"
elif html_id == "footer-html":
options["margin-bottom"] = "15mm"


return options return options




Yükleniyor…
İptal
Kaydet