Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
6294 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

I found out that upgrading website_partner module it works correctly.

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juni 24
8341
0
Sept. 21
1525
1
Juni 21
2301
1
Apr. 24
1562
0
März 24
1532