perf(BaseDocument): remove duplicate code (#16733)

This commit is contained in:
Sagar Vora 2022-04-26 15:52:03 +05:30 committed by GitHub
parent 57e379ac68
commit 224dd319e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,6 @@ class BaseDocument(object):
raise AttributeError(key)
value = get_controller(value["doctype"])(value)
value.init_valid_columns()
value.parent = self.name
value.parenttype = self.doctype