[Release Notes] ERPNext Version 13 has been released

I see it under module Accounting>Goods and Services Tax (GST India)>>>>
However if i click on it i get :
Not found :
Page gst-hsn-code not found
The resource you are looking for is not available
My country is set to South Africa

@Huawei_Hackace, Good effort, and thanks for sharing.
I do think you are not allowed to use “Frappe Framework” as the title of your youtube channel. This is reserved for the Frappe Cie.
I might be wrong but I think this is the case.

Here is the error on my instace from v12 to v13

Executing erpnext.patches.v13_0.setup_fields_for_80g_certificate_and_donation in erp.4csolutions.in (4cs)
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 101, in <module>
    main()
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/mujeerhashmi/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/mujeerhashmi/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/mujeerhashmi/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mujeerhashmi/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mujeerhashmi/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mujeerhashmi/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/mujeerhashmi/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 27, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/commands/site.py", line 300, in migrate
    skip_search_index=skip_search_index
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/migrate.py", line 67, in migrate
    frappe.modules.patch_handler.run_all(skip_failing)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 41, in run_all
    run_patch(patch)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 30, in run_patch
    if not run_single(patchmodule = patch):
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 71, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 91, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + ".execute")()
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/erpnext/erpnext/patches/v13_0/setup_fields_for_80g_certificate_and_donation.py", line 9, in execute
    make_custom_fields()
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/erpnext/erpnext/regional/india/setup.py", line 617, in make_custom_fields
    create_custom_fields(custom_fields, update=update)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py", line 158, in create_custom_fields
    custom_field.save()
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 284, in save
    return self._save(*args, **kwargs)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 336, in _save
    self.run_post_save_methods()
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 982, in run_post_save_methods
    self.run_method("on_update")
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 847, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 1136, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 1119, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 841, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/custom/doctype/custom_field/custom_field.py", line 69, in on_update
    validate_fields_for_doctype(self.dt)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 686, in validate_fields_for_doctype
    validate_fields(meta)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 990, in validate_fields
    check_illegal_default(d)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 784, in check_illegal_default
    frappe.throw(_("Default value for {0} must be in the list of options.").format(frappe.bold(d.fieldname)))
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 424, in throw
    msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 403, in msgprint
    _raise_exception()
  File "/home/mujeerhashmi/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 357, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.ValidationError: Default value for <b>naming_series</b> must be in the list of options.
2 Likes

Another Error on my dev bench

Traceback (most recent call last):
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/modules/utils.py", line 205, in load_doctype_module
    doctype_python_modules[key] = frappe.get_module(module_name)
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/__init__.py", line 910, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'frappe.core.doctype.custom_script'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/utils/bench_helper.py", line 101, in <module>
    main()
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/mujeerhashmi/erp/dev-bench/env/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/mujeerhashmi/erp/dev-bench/env/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/mujeerhashmi/erp/dev-bench/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mujeerhashmi/erp/dev-bench/env/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mujeerhashmi/erp/dev-bench/env/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mujeerhashmi/erp/dev-bench/env/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/mujeerhashmi/erp/dev-bench/env/lib/python3.8/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/commands/__init__.py", line 27, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/commands/site.py", line 297, in migrate
    migrate(
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/migrate.py", line 73, in migrate
    sync_fixtures()
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/utils/fixtures.py", line 24, in sync_fixtures
    import_doc(frappe.get_app_path(app, "fixtures", fname))
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/core/doctype/data_import/data_import.py", line 185, in import_doc
    import_file_by_path(
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/modules/import_file.py", line 69, in import_file_by_path
    import_doc(doc, force=force, data_import=data_import, pre_process=pre_process,
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/modules/import_file.py", line 104, in import_doc
    controller = get_controller(docdict['doctype'])
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/model/base_document.py", line 73, in get_controller
    site_controllers[doctype] = _get_controller()
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/model/base_document.py", line 55, in _get_controller
    module = load_doctype_module(doctype, module_name)
  File "/home/mujeerhashmi/erp/dev-bench/apps/frappe/frappe/modules/utils.py", line 207, in load_doctype_module
    raise ImportError('Module import failed for {0} ({1})'.format(doctype, module_name + ' Error: ' + str(e)))
ImportError: Module import failed for Custom Script (frappe.core.doctype.custom_script.custom_script Error: No module named 'frappe.core.doctype.custom_script')

Hello,

Tried to upgrade to 13 from ERPNext/12.19.0 + Frappe 12.6.1

Fixed in the console the POS Invoice and POS Invoice Item issue. Now I am faced with the issue below. Related to UAE BAT Report 201.

erp@localhost:~/frappe-bench$ bench update

WARN: bench is installed in editable mode!

This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`

Backing up sites...
Backup Summary for my.website.com at 2021-04-04 18:26:11.688372
Config  : ./my.website.com/private/backups/20210404_182609-my_website_com-site_config_backup.json 357.0B
Database: ./my.website.com/private/backups/20210404_182609-my_website_com-database.sql.gz         2.5MiB
Backup for Site my.website.com has been successfully completed
$ git pull  upstream version-13
From https://github.com/frappe/frappe
 * branch                  version-13 -> FETCH_HEAD
Already up to date.
$ find . -name "*.pyc" -delete
$ git pull  upstream version-13
From https://github.com/frappe/erpnext
 * branch                  version-13 -> FETCH_HEAD
Already up to date.
$ find . -name "*.pyc" -delete
Installing applications...
$ /home/mw-erpnext/frappe-bench/env/bin/pip install -q -U pip

Installing frappe
$ /home/mw-erpnext/frappe-bench/env/bin/pip install -q -U -e /home/mw-erpnext/frappe-bench/apps/frappe
$ yarn install
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
$ yarn run snyk-protect
yarn run v1.22.10
$ snyk protect
Successfully applied Snyk patches

Done in 16.50s.
Done in 18.48s.

Installing erpnext
$ /home/mw-erpnext/frappe-bench/env/bin/pip install -q -U -e /home/mw-erpnext/frappe-bench/apps/erpnext
$ yarn install
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
$ yarn run snyk-protect
yarn run v1.22.10
$ snyk protect
Successfully applied Snyk patches

Done in 4.43s.
Done in 6.03s.
Updating node packages...

Installing node dependencies for erpnext
$ yarn install
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
$ yarn run snyk-protect
yarn run v1.22.10
$ snyk protect
Successfully applied Snyk patches

Done in 4.35s.
Done in 6.08s.

Installing node dependencies for frappe
$ yarn install
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
$ yarn run snyk-protect
yarn run v1.22.10
$ snyk protect
Successfully applied Snyk patches

Done in 8.30s.
Done in 10.47s.
Patching sites...
Migrating my.website.com
Executing erpnext.patches.v13_0.setup_uae_vat_fields in my.website.com (_f2deb4800cbcdc9e)
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 101, in <module>
    main()
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name='bench')
  File "/home/mw-erpnext/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/mw-erpnext/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/mw-erpnext/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mw-erpnext/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mw-erpnext/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mw-erpnext/frappe-bench/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/mw-erpnext/frappe-bench/env/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 27, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/commands/site.py", line 300, in migrate
    skip_search_index=skip_search_index
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/migrate.py", line 67, in migrate
    frappe.modules.patch_handler.run_all(skip_failing)
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 41, in run_all
    run_patch(patch)
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 30, in run_patch
    if not run_single(patchmodule = patch):
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 71, in run_single
    return execute_patch(patchmodule, method, methodargs)
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 91, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + ".execute")()
  File "/home/mw-erpnext/frappe-bench/apps/erpnext/erpnext/patches/v13_0/setup_uae_vat_fields.py", line 12, in execute
    setup()
  File "/home/mw-erpnext/frappe-bench/apps/erpnext/erpnext/regional/united_arab_emirates/setup.py", line 15, in setup
    add_custom_roles_for_reports()
  File "/home/mw-erpnext/frappe-bench/apps/erpnext/erpnext/regional/united_arab_emirates/setup.py", line 149, in add_custom_roles_for_reports
    dict(role='Auditor')
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 231, in insert
    self._validate_links()
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 816, in _validate_links
    frappe.LinkValidationError)
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 424, in throw
    msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list)
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 403, in msgprint
    _raise_exception()
  File "/home/mw-erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 357, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.LinkValidationError: Could not find Report: UAE VAT 201


I tried in the console the following:

frappe.reload_doc('regional', 'report', 'uae_vat_201')

Which returned “True”.

But still when trying

bench update

or

bench update --patch

I come back to the same error about uae_vat_201

How to fix this?

Regards,
K

Thanks for the amazing release.
One question, which icons you used in the sidebar? where we can see a list of all available icons?

1 Like

Want to know this too. Do we have to add them manually or is there a package?

The Search and sidebar is not visible to some users after the update.

I have tried creating new users and changing permissions and even browsers the issue seems that the data isn’t being fetched for these users in the first place

I’m getting this error when switching from develop to version-13 branch:

$ yarn run snyk-protect
yarn run v1.22.10
$ snyk protect
Error: Cannot find module '@snyk/graphlib'

check your node and npm version node version must be above 10

Node version 12.21.0
NPM version 6.14.11

Hello,

Trying to update in here.

I had an error with old version of node, but I updated node and could continue, but now I am stuck with:
AttributeError: 'WebsiteTheme' object has no attribute 'ignored_apps'

And I can not progress anymore.

I was trying to upgrade from v12 in Ubuntu 18, but I think I am going to revert to 12 by now.

Many thanks and kind regards from Spain,

Alb

Dear Team,

I’m trying to update from 12 to 13 on ubuntu 18, getting this error on update:

AttributeError: 'WebsiteTheme' object has no attribute 'background_color'

Please help


What kind of problem is this? After updating to version 13, I’m facing this problem when trying to create a new purchase invoice.

Disappointed there are 75 problems posted in this thread alone with v13 in 3 days:

This must be the only project that releases their brand new and long-awaited release with a failing CI build, reports 0% code coverage and has hundreds if not thousands of github issues. This does nothing for your brand reputation.

Don’t get me wrong, I love the new interface and am excited by the new features, but nobody is going to use your software if there are so many bugs and the first page says FAILURE

4 Likes

Version 13 was long awaited, so I for one am glad it was released. And upgrade worked smooth in docker envirovment for me, but failed in production with some ‘utils’ module failure. So I suppose more info about requirements would fix most of the problems.

Is there any specific commit where this issue is resolved ?
Or link to a git issue which was resolved
or can you mention how you have resolved it exactly in functional and technical terms if possible Please.

So it will help in analyzing , verifying and possibly help previous versions also .

Thanks to you it did work for me to, but it shows that bench is in development mode and not recommended for production!
any help?

@revant_one
successfully completed bench update & bench build, but after login i got this
image
Then what??

can anyone help pls
regards
jchakma