odoomates / odooapps

250 stars 343 forks source link

[16.0] Unexpected "owl" Error message when trying to display a fixed asset in Dutch Language #136

Closed E4eqRL0yw0yajQJ433QL closed 7 months ago

E4eqRL0yw0yajQJ433QL commented 7 months ago

I just upgraded from odoo15 CE to odoo16 CE. Since the upgrade, I get an error when displaying a fixed asset, but only when logged in with the Dutch language. "Uncaught Promise > An error occured in the owl lifecycle (see this Error's "cause" property)"

When I switch to the English Language (with the same user), I do not get the error.

Steps to reproduce:

Actions already taken in trying to resolve the issue:

Suspected module om_account_asset

Detailed Error message TypeError: Cannot read properties of undefined (reading 'writeText') at ClientErrorDialog.onClickClipboard (http://xxx.xxx.x.x:xxxx/web/assets/2906-1e5005e/web.assets_backend.min.js:639:48) at Object.mainEventHandler (http://xxx.xxx.x.x:xxxx/web/assets/2905-71c4cd9/web.assets_common.min.js:1999:77) at HTMLButtonElement.listener (xxx.xxx.x.x:xxxx/web/assets/2905-71c4cd9/web.assets_common.min.js:1175:15)

E4eqRL0yw0yajQJ433QL commented 7 months ago

Did some research and it turns out this error was caused by a language (translation) problem. I was able to fix this by updating the contents of the nl_NL Dutch language. First exported nl_BE language as PO file and then imported this file as nl_NL. After re-activating (updating) nl_NL, the error message was gone.