Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odoo 16 Point of Sale native issue #106406

Open
allan225 opened this issue Nov 24, 2022 · 1 comment
Open

Odoo 16 Point of Sale native issue #106406

allan225 opened this issue Nov 24, 2022 · 1 comment

Comments

@allan225
Copy link

When i click on pos refund buton it generate error like this:

TypeError: Cannot read properties of undefined (reading 'get_orderlines')
at TicketScreen._doesOrderHaveSoleItem (http://allan-linux:8016/web/assets/143-7d62636/point_of_sale.assets.min.js:1571:54)
at TicketScreen._onDoRefund (http://allan-linux:8016/web/assets/143-7d62636/point_of_sale.assets.min.js:1540:71)
at ActionpadWidget.__trigger (http://allan-linux:8016/web/assets/121-a65fd85/web.assets_common.min.js:2080:104)
at ActionpadWidget.trigger (http://allan-linux:8016/web/assets/121-a65fd85/web.assets_common.min.js:2078:33)
at ActionpadWidget.hdlr2 (eval at compile (http://allan-linux:8016/web/assets/121-a65fd85/web.assets_common.min.js:2001:370), :23:27)
at Object.mainEventHandler (http://allan-linux:8016/web/assets/121-a65fd85/web.assets_common.min.js:2008:77)
at HTMLButtonElement.listener (http://allan-linux:8016/web/assets/121-a65fd85/web.assets_common.min.js:1241:15)

@allan225 allan225 changed the title Odoo pos issue Odoo 16 pos issue Nov 24, 2022
@allan225 allan225 changed the title Odoo 16 pos issue Odoo 16 Point of Sale native issue Nov 28, 2022
@em230418
Copy link
Contributor

To reproduce this:
Point of Sale -> any POS without any orders -> Refund (ProductScreen) -> Refund (TicketScreen).

Culprint is here: fa06e32#diff-a656f74e5ff6c8c6f2aee69ca86440c173a0f2a3e40c4246c02eb9a9bcdb0a84
if (!order) check was moved for some reason after _doesOrderHaveSoleItem.

Ping @caburj as author of commit above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants