Invalid field name: do_reposting_for_each_stock_transaction

Got this error while submitting sales invoice.how to resolve this?
request.js:457 Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 95, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 47, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1608, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/desk/form/save.py”, line 31, in savedocs
doc.save()
File “apps/frappe/frappe/model/document.py”, line 305, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 357, in save
self.run_post_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1085, in run_post_save_methods
self.run_method(“on_submit”)
File “apps/frappe/frappe/model/document.py”, line 915, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1267, in composer
return composed(self, method, *args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 1249, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “apps/frappe/frappe/model/document.py”, line 912, in fn
return method_object(*args, **kwargs)
File “apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 274, in on_submit
self.update_stock_ledger()
File “apps/erpnext/erpnext/controllers/selling_controller.py”, line 524, in update_stock_ledger
self.make_sl_entries(sl_entries)
File “apps/erpnext/erpnext/controllers/stock_controller.py”, line 502, in make_sl_entries
make_sl_entries(sl_entries, allow_negative_stock, via_landed_cost_voucher)
File “apps/erpnext/erpnext/stock/stock_ledger.py”, line 49, in make_sl_entries
future_sle_exists(args, sl_entries)
File “apps/erpnext/erpnext/controllers/stock_controller.py”, line 1012, in future_sle_exists
if allow_force_reposting and frappe.db.get_single_value(
File “apps/frappe/frappe/database/database.py”, line 865, in get_single_value
frappe.throw(
(“Invalid field name: {0}”).format(frappe.bold(fieldname)), self.InvalidColumnName)
File “apps/frappe/frappe/init.py”, line 538, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 506, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 452, in _raise_exception
raise raise_exception(msg)
frappe.database.database.Database.InvalidColumnName: Invalid field name: do_reposting_for_each_stock_transaction