The issue involves fixing file attachment references in child tables which requires modifying the File doctype.
The problem is that file attachments in child tables lose their backward reference to the parent row. The solution involves adding new fields to the File doctype to maintain these references. The main blocker is ensuring the changes don't break existing functionality.
This image is a background image which is already linked in the Web-page. Since it needs to show in the website, it cannot be private, hence trying to chance it to public
other
version 15 all
FrappeCloud
### App Versions
{
"erpnext": "15.0.0",
"frappe": "15.1.0",
"hrms": "15.2.0"
}
Form/File/0bc47a91f8
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 110, in application
response = frappe.api.handle(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/api/__init__.py", line 49, in handle
data = endpoint(**arguments)
^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
return frappe.handler.handle()
^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/handler.py", line 49, in handle
data = execute_cmd(cmd)
^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/__init__.py", line 1683, in call
return fn(*args, **newargs)
^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/desk/form/save.py", line 39, in savedocs
doc.save()
File "apps/frappe/frappe/model/document.py", line 334, in save
return self._save(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/model/document.py", line 369, in _save
self.run_before_save_methods()
File "apps/frappe/frappe/model/document.py", line 1081, in run_before_save_methods
self.run_method("validate")
File "apps/frap
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!