Skip to Content
Menu
This question has been flagged
2 Replies
2339 Views

Greetings,


We've set up Odoo 15 Community edition with POS module.


We've tested opening and closing several POS sessions successfully before.


Currently we have a session that has been left open for several weeks and we are unable to close it. We can connect to the session and make new orders, however clicking the "Close" button has no effect.



The following error is dumped to the browser console:



TypeError: scope.canCancel is not a function

anonymous https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js line 1026 > Function:397

fn https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1008

render https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1015

__render https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1344

__prepareAndRender https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1342

__prepare https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1333

anonymous https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js line 1026 > Function:366

render https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1015

renderFn https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1364

__render https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1344

render https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1308

promise callback*render https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1307

set https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:773

__showPopup https://erp.ourdomain.com/web/assets/123-66b2263/point_of_sale.assets.min.js:631

__trigger https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1323

__trigger https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1475

__trigger https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1410

_handlerTunnel https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1398

__trigger https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1323

__trigger https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1475

trigger https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:1312

showPopup https://erp.ourdomain.com/web/assets/123-66b2263/point_of_sale.assets.min.js:324

showPopup https://erp.ourdomain.com/web/assets/123-66b2263/point_of_sale.assets.min.js:324

onClick https://erp.ourdomain.com/web/assets/123-66b2263/point_of_sale.assets.min.js:1210

click__311__ https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js line 1026 > Function:12

invokeHandler https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:848

handleEvent https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:852

handler https://erp.ourdomain.com/web/assets/135-f2461d3/web.assets_common.min.js:854

point_of_sale.assets.min.js:646:27



Avatar
Discard
Author Best Answer

Thanks, that might be the case since the old session was indeed opened in 2021.

I do not find settings to manage fiscal years in our instance and from what I gather it seems fiscal year controls are available in the Enterprise edition.

Any ideas how to solve the issue with Community edition?

Avatar
Discard
Best Answer

make sure that your session reference number DOES NOT include a reference to the fiscal year (in your case 2021) ; in 2022 this will forbid the closing of a session opened in 2021

or create a new fiscal year 2022

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
46
1
Dec 24
173
0
Nov 24
86
1
Nov 24
152
1
Nov 24
187