Merge pull request #733 from anandpdoshi/anand-july-29
[fix] [print] print css
This commit is contained in:
commit
e09d1eeb05
3 changed files with 14 additions and 1 deletions
|
|
@ -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"}),
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue