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))”