Merge pull request #733 from anandpdoshi/anand-july-29

[fix] [print] print css
This commit is contained in:
Anand Doshi 2014-07-29 14:51:15 +05:30
commit e09d1eeb05
3 changed files with 14 additions and 1 deletions

View file

@ -211,6 +211,8 @@ class Meta(Document):
return fields
def is_print_hide(self, fieldname):
return self.get_field(fieldname).print_hide
doctype_table_fields = [
frappe._dict({"fieldname": "fields", "options": "DocField"}),

View file

@ -65,3 +65,14 @@ table.no-border, table.no-border td {
display: block;
}
.print-format img {
max-width: 100%;
}
.print-format table td > .primary:first-child {
font-weight: bold;
}
.print-format td {
vertical-align: top;
}

View file

@ -190,7 +190,7 @@ def get_print_style(style=None):
# prepend css with at_import
css = at_import + css
css += additional_css
css += "\n" + additional_css
except TemplateNotFound:
pass