[Release Notes] ERPNext Version 13 has been released

Delete all” button at tables doesn’t apply changes to some docs.
Anyone else having this issue?

https://github.com/frappe/erpnext/issues/25469

Trying to Update ERPNEXT from V12.20.2 to V13

Getting error on
bench switch-to-branch version-13 frappe erpnext --upgrade

bench not working after this command.
Recent Traceback of Commands

Traceback (most recent call last):

File “/usr/lib/python3.5/runpy.py”, line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/usr/lib/python3.5/runpy.py”, line 109, in _get_module_details
import(pkg_name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 372
print(f"Message: {strip_html_tags(out.message)}")

SyntaxError: invalid syntax

Traceback (most recent call last):
File “/usr/lib/python3.5/runpy.py”, line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/usr/lib/python3.5/runpy.py”, line 109, in _get_module_details
import(pkg_name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 372
print(f"Message: {strip_html_tags(out.message)}")

SyntaxError: invalid syntax

This is a user permission issue for some reason as you give the user dashboard roles it reappears

Then How to resolve the above … where am I missing?

I followed the same thing and overwrite the file inside patches. After doing so the update was successful but the login page is now messed up. I don’t understand how to fix it. Can you help me. Here is a screenshot of how it looks like now.

As you can see mainly the css of this page is affected

Just out of curiosity, when will the production ERPNext VM image be updated from v12 to v13?

Download EPRNext VM (erpnext.org)

3 Likes

I am having the same problem for payment reconciliation - this is not working for V13. Has there been any solution? Nothing shows in the Invoice_number drop-down list.

May be this is the fix you are looking for.

V13 update fails with frappe.exceptions.LinkValidationError: Could not find Report: E-Invoice Summary

Trying to upgrade and getting into the above error. Tried frappe.reload_doc(“regional”, “doctype”, “e_invoice_settings”, force=True) and followed by frappe.db.commit()

Still the same error.

@nabinhait could you please help resolving this. This happens in almost all of my sites.

Facing same issue with PDF missing on mobile browser. Tried desktop view in horizontal as well. No change to view

i got this error while installing version13 on Ubuntu 20.10

Traceback (most recent call last):
      File "/home/po/frappe-bench/apps/frappe/frappe/website/render.py", line 49, in render
        data = render_page_by_language(path)
      File "/home/po/frappe-bench/apps/frappe/frappe/website/render.py", line 178, in render_page_by_language
        return render_page(path)
      File "/home/po/frappe-bench/apps/frappe/frappe/website/render.py", line 194, in render_page
        return build(path)
      File "/home/po/frappe-bench/apps/frappe/frappe/website/render.py", line 201, in build
        return build_page(path)
      File "/home/po/frappe-bench/apps/frappe/frappe/website/render.py", line 224, in build_page
        html = frappe.get_template(context.template).render(context)
      File "/home/po/frappe-bench/env/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
        self.environment.handle_exception()
      File "/home/po/frappe-bench/env/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
        reraise(*rewrite_traceback_stack(source=source))
      File "/home/po/frappe-bench/env/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
        raise value.with_traceback(tb)
      File "/home/po/frappe-bench/apps/frappe/frappe/./www/login.html", line 62, in top-level template code
        <h4>{{ _('Login to {0}').format(app_name or _("Frappe")) }}</h4>
      File "/home/po/frappe-bench/apps/frappe/frappe/./templates/web.html", line 1, in top-level template code
        {% extends base_template_path %}
      File "/home/po/frappe-bench/apps/frappe/frappe/./templates/base.html", line 83, in top-level template code
        {% block content %}
      File "/home/po/frappe-bench/apps/frappe/frappe/./templates/web.html", line 72, in block "content"
        {{ main_content() }}
      File "/home/po/frappe-bench/env/lib/python3.8/site-packages/jinja2/sandbox.py", line 462, in call
        return __context.call(__obj, *args, **kwargs)
      File "/home/po/frappe-bench/env/lib/python3.8/site-packages/jinja2/runtime.py", line 679, in _invoke
        rv = self._func(*arguments)
      File "/home/po/frappe-bench/apps/frappe/frappe/./templates/web.html", line 15, in template
        {% block page_container %}
      File "/home/po/frappe-bench/apps/frappe/frappe/./templates/web.html", line 30, in block "page_container"
        {%- block page_content -%}{%- endblock -%}
      File "/home/po/frappe-bench/apps/frappe/frappe/./www/login.html", line 73, in block "page_content"
        {{ _("You need to enable JavaScript for your app to work.") }}<br>{{ _("To enable it follow the instructions in the following link: {0}").format("<a href='https://enable-javascript.com/'>enable-javascript.com</a></p>") }}
      File "/home/po/frappe-bench/env/lib/python3.8/site-packages/jinja2/sandbox.py", line 456, in call
        return __self.format_string(fmt, args, kwargs, __obj)
      File "/home/po/frappe-bench/env/lib/python3.8/site-packages/jinja2/sandbox.py", line 449, in format_string
        rv = formatter.vformat(s, args, kwargs)
      File "/usr/lib/python3.8/string.py", line 167, in vformat
        result, _ = self._vformat(format_string, args, kwargs, used_args, 2)
      File "/usr/lib/python3.8/string.py", line 176, in _vformat
        for literal_text, field_name, format_spec, conversion in \
    ValueError: expected '}' before end of string

any idea how to solve this error??

@armin_azimi

Welcome!

May be you must enable JavaScript in your browser.

Hope it helps.

From my experience, it appears there are still a number of compatibility issues with ERPNext and Python3.8 which comes as default with Ubuntu 20.xx

I simply installed Python3.7 and made sure to specify the Python environment while installing… no issues ever since!

Cheers

I am also facing the same issue, when I upgraded from 12-13

I have tried to upgrade from v12 to v13 and end up in the following error. Any clue you can help me with?

File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 852, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py”, line 76, in on_update
validate_fields_for_doctype(self.dt)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 739, in validate_fields_for_doctype
validate_fields(meta)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 1050, in validate_fields
validate_data_field_type(d)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”, line 1004, in validate_data_field_type
frappe.msgprint(text_str + df_options_str, title=“Invalid Data Field”, raise_exception=True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/ init .py”, line 406, in msgprint
_raise_exception()
File “/home/frappe/frappe-bench/apps/frappe/frappe/ init .py”, line 362, in _raise_exception
raise ValidationError(msg)
> frappe.exceptions.ValidationError: Project Title is an invalid Data field.

Only Options allowed for Data field are:

* Email

  • Name
  • Phone

You’ve custom field with type Data and it has invalid options.

Yes, I have a custom field project_title in Quotation, Sales Invoice and Sales Order docs.

The type is VARCHAR

and now I am not able to access the web

image

Can you help to resolve it please?

Should I worry of loosing data if I change the type? This is a production server.

What is “Issue-legacy_customer_id”?

f = frappe.get_doc(“Custom Field”, “Issue-legacy_customer_id”)
Set the options to None, current option Customer is invalid
f.options = None
f.save()
frappe.db.commit()