odoomates/odooapps

[16.0] account_asset: OWL error with asset creation

Closed this issue · 4 comments

Installed om_account_accountant and om_account_asset modules (version 16.0.1.0.0) on a fresh Odoo 16 system.

Creating an asset (via 'Accounting → Assets' menu) results in following crash:

UncaughtPromiseError > OwlError
Uncaught Promise > An error occured in the owl lifecycle (see this Error's "cause" property)
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
    OwlError@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js:1204:1
    handleError@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js:1211:101
    handleError@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js:2028:29
    _render@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js:1434:19
    render@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js:1432:6
    initiateRender@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js:1511:47

Caused by: TypeError: this.props.record.data[this.props.currencyField] is undefined
    get currencyId@http://localhost:8069/web/assets/202-dbc7672/web.assets_backend.min.js:3221:18
    get currency@http://localhost:8069/web/assets/202-dbc7672/web.assets_backend.min.js:3222:19
    template@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js line 1990 > Function:20:11
    _render@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js:1433:96
    render@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js:1432:6
    initiateRender@http://localhost:8069/web/assets/133-791a5fd/web.assets_common.min.js:1511:4

Please let me know if any additional troubleshooting information required,

Thanks for reporting, will check and let you know

I have installed om_account_accountant and om_account_asset modules and was able to create asset without any issue. Please try to get the latest code of Odoo 16.0 and upgrade your system.

@rajeeshknambiar we are not able to reproduce the issue.
Are you still getting this ?

I tried with a fresh installation and the error is not reproducible.
I have a few other standard modules installed previously, tried those again and all looks good. Sorry about the false alarm.