POS Closing Error


When I try to close a POS period I have the following error:

“Module import failed for POS Invoice (erpnext.accounts.doctype.pos_invoice.pos_invoice Error: cannot import name ‘_to_bytes’ from ‘werkzeug._internal’ (/opt/bench/erpnext/env/lib/python3.8/site-packages/werkzeug/_internal.py))”

How can I solve this?



@ricamz try this command in the bench folder to install werkzeug 2.1.1

  ./env/bin/pip install werkzeug==2.1.1

Thanks @bahaou.

It worked, although now I have an error stating that some line is already consolidated.



@ricamz share the error please .

Row #1: POS Invoice ACC-PSINV-2022-00078 has been Consolidated

@ricamz that’s not an error . I m not very familiar with consolidated invoices but I dont think you can undo it . read more about *

or create a new ticket about it .

Thanks. I will investigate more and if needed will create a new ticket.