I restored to one of my v11 snapshots. From there I upgraded to v12:
Compact_item_print is not listed as a field under Print Settings. Chrome console displays the following:
Traceback (most recent call last):
File “/home/admin/mvogel.frappe/apps/frappe/frappe/app.py”, line 60, in application
response = frappe.api.handle()
File “/home/admin/mvogel.frappe/apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “/home/admin/mvogel.frappe/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/init.py”, line 1036, in call
return fn(*args, **newargs)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/desk/form/load.py”, line 33, in getdoc
doc = frappe.get_doc(doctype, name)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/init.py”, line 734, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/model/document.py”, line 69, in get_doc
return controller(*args, **kwargs)
File “/home/admin/mvogel.frappe/apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py”, line 38, in init
super(SalesInvoice, self).init(*args, **kwargs)
File “/home/admin/mvogel.frappe/apps/erpnext/erpnext/controllers/accounts_controller.py”, line 25, in init
super(AccountsController, self).init(*args, **kwargs)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/model/document.py”, line 104, in init
self.load_from_db()
File “/home/admin/mvogel.frappe/apps/frappe/frappe/model/document.py”, line 162, in load_from_db
self.set(df.fieldname, children)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/model/base_document.py”, line 130, in set
self.extend(key, value)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/model/base_document.py”, line 167, in extend
self.append(key, v)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/model/base_document.py”, line 144, in append
value = self._init_child(value, key)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/model/base_document.py”, line 183, in init_child
value = get_controller(value[“doctype”])(value)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/model/document.py”, line 113, in init
super(Document, self).init(kwargs)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/model/base_document.py”, line 64, in init
self.setup()
File “/home/admin/mvogel.frappe/apps/erpnext/erpnext/accounts/doctype/sales_invoice_item/sales_invoice_item.py”, line 12, in setup
print_settings_for_item_table(self)
File “/home/admin/mvogel.frappe/apps/erpnext/erpnext/controllers/print_settings.py”, line 15, in print_settings_for_item_table
doc.flags.compact_item_print = cint(frappe.db.get_single_value(“Print Settings”, “compact_item_print”))
File “/home/admin/mvogel.frappe/apps/frappe/frappe/database/database.py”, line 558, in get_single_value
frappe.throw((‘Invalid field name: {0}’).format(frappe.bold(fieldname)), self.InvalidColumnName)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/init.py”, line 360, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/admin/mvogel.frappe/apps/frappe/frappe/init.py”, line 346, in msgprint
_raise_exception()
File “/home/admin/mvogel.frappe/apps/frappe/frappe/init.py”, line 315, in _raise_exception
raise raise_exception(msg)
InvalidColumnName: Invalid field name: compact_item_print