mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
cms fixes
This commit is contained in:
@@ -21,8 +21,9 @@ class DocType:
|
|||||||
def validate(self):
|
def validate(self):
|
||||||
"""make custom css"""
|
"""make custom css"""
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
|
import os
|
||||||
|
|
||||||
with open('erpnext/website/doctype/style_settings/custom_template.css', 'r') as f:
|
with open(os.path.dirname(__file__), 'custom_template.css'), 'r') as f:
|
||||||
temp = Template(f.read())
|
temp = Template(f.read())
|
||||||
|
|
||||||
if not self.doc.font_size:
|
if not self.doc.font_size:
|
||||||
|
|||||||
Reference in New Issue
Block a user