@frappe.whitelist()
def add_column(board_name, column_title):
 doc = frappe.get_doc(u'Kanban Board', board_name)
 for col in doc.columns:
  if (column_title == col.column_name):
   frappe.throw(_(u'Column <b>{0}</b> already exist.').format(column_title))
 doc.append(u'columns', dict(column_name=column_title))
 doc.save()
 return doc.columns

@ frappe . whitelist ( ) def add_column ( board_name , column_title ) : doc = frappe . get_doc ( u'Kanban Board' , board_name ) for col in doc . columns : if ( column_title == col . column_name ) : frappe . throw ( _ ( u'Column <b>{0}</b> already exist.' ) . format ( column_title ) ) doc . append ( u'columns' , dict ( column_name = column_title ) ) doc . save ( ) return doc . columns
add field to the given spyne object also mapped as a sqlalchemy object to a sqlalchemy table .