Fetch from property is now applicable for all fieldtypes except no_value_fields (#5624)

* Reload docperm

* Reload docperm

* Fetch from property is now applicable for all fieldtypes except no_value_fields
This commit is contained in:
Nabin Hait 2018-05-29 10:54:45 +05:30 committed by GitHub
parent c4e8482da0
commit c49193c1c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View file

@ -759,7 +759,7 @@
"issingle": 0,
"istable": 1,
"max_attachments": 0,
"modified": "2018-03-26 11:54:38.613936",
"modified": "2018-05-29 11:54:38.613936",
"modified_by": "Administrator",
"module": "Core",
"name": "DocPerm",

View file

@ -196,8 +196,7 @@ class Meta(Document):
link_fields = [df.fieldname for df in self.get_link_fields()]
for df in self.fields:
if df.fieldtype in ('Data', 'Read Only', 'Text', 'Small Text',
'Text Editor', 'Code', 'Link', 'Check') and getattr(df, 'fetch_from', None):
if df.fieldtype not in no_value_fields and getattr(df, 'fetch_from', None):
if link_fieldname:
if df.fetch_from.startswith(link_fieldname + '.'):
out.append(df)

View file

@ -7,7 +7,7 @@ frappe.patches.v8_0.drop_in_dialog #2017-09-22
frappe.patches.v7_2.remove_in_filter
execute:frappe.reload_doc('core', 'doctype', 'doctype', force=True) #2017-09-22
execute:frappe.reload_doc('core', 'doctype', 'docfield', force=True) #2018-02-20
execute:frappe.reload_doc('core', 'doctype', 'docperm') #2017-03-03
execute:frappe.reload_doc('core', 'doctype', 'docperm') #2018-05-29
execute:frappe.reload_doc('core', 'doctype', 'module_def') #2017-09-22
execute:frappe.reload_doc('core', 'doctype', 'version') #2017-04-01
execute:frappe.reload_doc('core', 'doctype', 'activity_log')