Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
6298 Visninger

I can't access to sales or invoice apps, there is an error. I can access to other apps without error.

Error: time.getLangDateFormatWoZero is not a function
parseDateTime@https:///web/content/12620-36de881/web.assets_backend.js:1064:116
_parseServerValue@https:///web/content/12620-36de881/web.assets_backend.js:1294:384
_parseServerData//web/content/12620-36de881/web.assets_backend.js:1539:544
_.forEach@https:///web/content/8697-069cfca/web.assets_common.js:110:412
_parseServerData@https:///web/content/12620-36de881/web.assets_backend.js:1539:157
_searchReadUngroupedList//web/content/12620-36de881/web.assets_backend.js:1584:346
_.collect@https:///web/content/8697-069cfca/web.assets_common.js:111:270
_searchReadUngroupedList//web/content/12620-36de881/web.assets_backend.js:1584:127


Maybe a time function but I can't find "time.getLangDateFormatWoZero". Where I can get more info on this error, no line in server log.

Avatar
Kassér
Bedste svar

The function time.getLangDateFormatWoZero can be found under the web addon.
See: https://github.com/odoo/odoo/blob/14.0/addons/web/static/src/js/core/time.js#L307

It is used by the ParseDate function, which is used by Date fields to validate user input.
See: https://github.com/odoo/odoo/blob/14.0/addons/web/static/src/js/fields/field_utils.js#L465

As to what this error means, it is a mystery to me as well.

[Edit]

Some background: the same error with a similar traceback started appearing in my instance after turning on a new language.

[Solution]

I was able to correct this issue by using the "Regenerate Asset Bundles" option from the developer menu. See: https://i.imgur.com/e0qZv5v.png

To activate developer mode and interact with the developer menu, see: https://www.odoo.com/documentation/14.0/applications/general.html#activate-the-developer-mode-debug-mode

Avatar
Kassér
Bedste svar

I found out that upgrading website_partner module it works correctly.

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
jun. 24
8346
0
sep. 21
1530
1
jun. 21
2302
1
apr. 24
1588
0
mar. 24
1551