fix: don't reset the child doc fields value for new record (#10090)
This commit is contained in:
parent
ce31e795c9
commit
9c78c5b564
1 changed files with 3 additions and 0 deletions
|
|
@ -587,6 +587,9 @@ class Document(BaseDocument):
|
|||
if high_permlevel_fields:
|
||||
self.reset_values_if_no_permlevel_access(has_access_to, high_permlevel_fields)
|
||||
|
||||
# If new record then don't reset the values for child table
|
||||
if self.is_new(): return
|
||||
|
||||
# check for child tables
|
||||
for df in self.meta.get_table_fields():
|
||||
high_permlevel_fields = frappe.get_meta(df.options).get_high_permlevel_fields()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue