Merge pull request #5163 from achillesrasquinha/py3

Fixed printpriview
This commit is contained in:
Achilles Rasquinha 2018-03-09 14:47:51 +05:30 committed by GitHub
commit 4a2a465ea3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -326,7 +326,7 @@ def is_visible(df, doc):
if df.fieldname in doc.hide_in_print_layout:
return False
if df.permlevel > 0 and not doc.has_permlevel_access_to(df.fieldname, df):
if df.permlevel or 0 > 0 and not doc.has_permlevel_access_to(df.fieldname, df):
return False
return not doc.is_print_hide(df.fieldname, df)