This question has been flagged
2 Replies
3076 Views

Greetings,


Using Odoo 15 Community Edition, updated to latest nightly build on Debian 11.

We have set up the POS application and been using it regularly. A couple of days ago, the following issue arose: attempting to confirm any sale from the payment screen, the following error pops up:

TypeError: utils.getComponent(...).lockedValidateOrder is not a function
    anonymous/p901.on.click@https://erp.example.com/web/assets/723-668a041/web.assets_common.min.js line 1024 > Function:53:111
    invokeHandler@https://erp.example.com/web/assets/723-668a041/web.assets_common.min.js:848:144
    handleEvent@https://erp.example.com/web/assets/723-668a041/web.assets_common.min.js:852:105
    handler@https://erp.example.com/web/assets/723-668a041/web.assets_common.min.js:854:69

It is impossible to do any sales through the POS. Any ideas how to troubleshoot?

Regards,

Dimitri


Avatar
Discard

Is this error showing after updating Odoo to the latest nightly build? This js has been updated in 19-Apr-2022 to fix traceback when fast click validate. https://github.com/odoo/odoo/pull/89063

Did you upgrade the base module after updating to the latest build?

Try to Activate the developer mode (with assets) and give it a try.

Author

@Waleed Mohsen, the install has been updating daily to the latest nightly build. The issue started on 2022-05-18, so it might be related to that or the previous nightly.

I tried activating developer mode (with assets) from settings and then found the Base module in Apps and upgraded it. Now, while developer mode is active, I can post orders without error. However, if I deactivate developer mode, the same error persists. How can I solve the issue without keeping developer mode active?

Can you try inprivate or incognito browsing?

Also you can clear the browser cache and give it a try?

Author

I tried erasing all site data and cache and also logging in from incognito mode. Unfortunately the problem persists - I can successfully post orders only if developer mode (with assets) is active, otherwise the same error pops up.

Best Answer

Hi everyone,

For this error in POS odoo v15c:

lockedValidateOrder is not a function

I solved a same issues just by updating Odoo after that update POS module.

Avatar
Discard
Best Answer

Hi, did you finally get your issue solved? If so, kindly let us know. If not, please try the following: POS module >> Configuration >> Point of Sale >> Select your shop / create a new shop >> scroll down to inventory [MAKE SURE Main Warehouse: PoS Orders] is selected.

Give it a try might help.

Avatar
Discard