Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3934 Vistas

our odoo 14 community edition POS is not letting us to the payment screen.  We only use it every few days during our slow season,  it worked fine last Wednesday, but  last friday one of our users couldn't close out an order and session.  it appeared to be a issue with web assets so i rebuilt them and rebooted the server,   the session closed and i thought everything was fine.  


Today another user tries to enter a simple order and we can't enter payments.  We get the following errors in the js console:

point_of_sale.assets.js:625 Error: QWeb error: Invalid loop expression
at QWeb.eval (eval at _compile (web.assets_common.js:971), :133:24)
at QWeb.fn (web.assets_common.js:953)
at QWeb.render (web.assets_common.js:960)
at PaymentScreen.__render (web.assets_common.js:1277)
at PaymentScreen.__prepareAndRender (web.assets_common.js:1275)
catchError @ point_of_sale.assets.js:625
point_of_sale.assets.js:625 Error: QWeb error: Invalid loop expression
at QWeb.eval (eval at _compile (web.assets_common.js:971), :133:24)
at QWeb.render (web.assets_common.js:960)
at PaymentScreen.__render (web.assets_common.js:1277)
at web.assets_common.js:1241
catchError @ point_of_sale.assets.js:625
point_of_sale.assets.js:625 Error: QWeb error: Invalid loop expression
at QWeb.eval (eval at _compile (web.assets_common.js:971), :133:24)
at QWeb.render (web.assets_common.js:960)
at PaymentScreen.__render (web.assets_common.js:1277)
at PaymentScreen.__updateProps (web.assets_common.js:1262)


I ran the pos JS tests and the following came up

unit tests for ProductScreen components: Orderline (2, 0, 2)

Source:
TypeError: Cannot set property 'tracking' of undefined
at Object. (https:///point_of_sale/static/tests/unit/test_ProductScreen.js:516:25)
)

Expected 10 assertions, but 1 were run@ 6 ms
Source:
at https:///point_of_sale/static/tests/unit/test_ProductScreen.js:481:11
at https:///web/static/src/js/boot.js:260:43
at new Promise ()
at processJob (https:///web/static/src/js/boot.js:258:23)
at Object.odoo.processJobs (https:///web/static/src/js/boot.js:316:13)
at https:///web/static/src/js/boot.js:271:34

I have no code addons or anything installed in pos,  just community version running in docker.  I did update to the June 9th, version from docker hub, but that did not change anything. 

Avatar
Descartar
Autor

Just want to add everything works fine if i enable developer mode with assets. it still errors out if it is just developer mode. So any thoughts on how i can fix this i would really appreciate it.

Mejor respuesta

Thank you very much for your answer. I have read the document. I tried to regenerate the assets via the GUI and it didn't work. I do not understand how to do it via psql. Could you please add a description of how you did the psql regeneration? Thank you

On the 16th of June we experienced the same problem. Did an Ubuntu update that came with a new Odoo update. After the update installed a blank screen is shown on payment of POS.


Can only get the payment page to display by activating Developer Mode with Assets. Have you managed to find a solution?

Avatar
Descartar
Autor Mejor respuesta

Sorry I forgot to post this last week after we came up with the answer.

Since the error goes away with developer w/ assets i figured it had to be in the bundles.  I regenerated it numerous times via the GUI and nothing changed.  I finally tracked it down to duplicate asset bundle entries in the ir_attachment table.  https://reedrehg.medium.com/odoo-images-and-attachments-explaining-and-regenerating-assets-d1eb7fe8a3ed  This article on medium helped me a lot.  i followed the directions to regenerate the assets with psql (at the bottom of the article) and everything went back to normal!

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 23
2169
0
mar 25
1121
1
mar 25
1957
2
feb 25
2505
1
nov 24
1553