Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print Format Error #25955

Open
tonspar opened this issue Apr 15, 2024 · 1 comment
Open

Print Format Error #25955

tonspar opened this issue Apr 15, 2024 · 1 comment
Labels

Comments

@tonspar
Copy link
Contributor

tonspar commented Apr 15, 2024

Description of the issue

Hello,
unfortunately, I can not add custom "Print Format". As standard user I got error during saving from /app/print-format-builder/

frappe.exceptions.DoesNotExistError: DocType None not found

As an Adminstrator I got this error:


File "apps/frappe/frappe/model/document.py", line 75, in get_doc
    raise ValueError("First non keyword argument must be a string or dict")
ValueError: First non keyword argument must be a string or dict

If I try system console for inserting I got this error:

Traceback (most recent call last):
  File "apps/frappe/frappe/desk/doctype/system_console/system_console.py", line 32, in run
    safe_exec(self.console, script_filename="System Console")
  File "apps/frappe/frappe/utils/safe_exec.py", line 100, in safe_exec
    exec(
  File "<serverscript>: system_console", line 4, in <module>
  File "apps/frappe/frappe/model/document.py", line 292, in insert
    self._validate()
  File "apps/frappe/frappe/model/document.py", line 574, in _validate
    self._validate_mandatory()
  File "apps/frappe/frappe/model/document.py", line 911, in _validate_mandatory
    raise frappe.MandatoryError(
frappe.exceptions.MandatoryError: [Print Format, 6c2664e7ca]: parent, parenttype

The last weird thing is "Print Format" form view, it is almost blank:

image

We are running on the frappecloud.

App versions:

ERPNext: v15.20.3 (HEAD)

Frappe Framework: v15.22.0 (HEAD)

Frappe HR: v15.17.0 (HEAD)

Payments: v0.0.1 (HEAD)

I have tried update apps and site and migrate, nothing helped :-(

Thank you.

Jiri Sir

@tonspar tonspar added the bug label Apr 15, 2024
@tonspar
Copy link
Contributor Author

tonspar commented Apr 15, 2024

Finally, I have found the issue.
System let me customize "Print Format" Form. I remember I wanted allow "Allow Import". I check the checkbox and press "Save".
It is weird but it was visible and in function, because it generated these property setters:
image
that screw up the form view and the other functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant