Pos didn't sync and locked with error in sales invoice icon

Dear all
i faced a problem witch made pos locked and i can’t
work on

i started to make pos and i observed that it didn’t sync ; i tried to sync it manually
but the same result (no sync)

pop up massage appears continuously (delivery note is mandatory form item *****)

after a period i tried to open sales invoice (no data coming from pos)

i made bench update on vm

it tried to open sales invoice icon the next massage appears

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 40, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 898, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 70, in getdoctype
docs = get_meta_bundle(doctype)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/load.py”, line 81, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 20, in get_meta
meta = frappe.cache().hget(“form_meta”, doctype, lambda: FormMeta(doctype))
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 171, in hget
value = generator()
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 20, in
meta = frappe.cache().hget(“form_meta”, doctype, lambda: FormMeta(doctype))
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 32, in init
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 42, in load_assets
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/meta.py”, line 150, in load_templates
module = load_doctype_module(self.name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 171, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(module_name)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 663, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 12, in
from erpnext.accounts.doctype.sales_invoice.pos import update_multi_mode_option
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/sales_invoice/pos.py”, line 86
doc.terms = frappe.db.get_value(‘Terms and Conditions’, pos_profile.get(‘tc_name’), ‘terms’)
IndentationError: expected an indented block ))))))

i try to open pos but it is locked with a massage (master data syncing it might take some time)

please help me

It looks like an intendation error did you make any customization in pos.py file ?


hi makarand_b

i just fixed error as link below


thank you for reply i will review what i did

thank you makarand_b
i fetched the reason