Skip to content

Instantly share code, notes, and snippets.

View KanchanChauhan's full-sized avatar

Kanchan Chauhan KanchanChauhan

View GitHub Profile
def create_customer(xero_cust):
try:
customer = frappe.get_doc({
"doctype": "Customer",
"customer_type": "Company",
"customer_name" : xero_cust.customer_name,
"customer_group": xero_cust.customer_group,
"gst_category": xero_cust.gst_category,
"gstin": xero_cust.gstin or ""
})
Executing erpnext.patches.v8_4.make_scorecard_records in demo.erpnext.dev (3b0ef62019)
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/kanchanchauhan/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 91, in <module>
main()
File "/Users/kanchanchauhan/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 17, in main
click.Group(commands=commands)(prog_name='bench')
@KanchanChauhan
KanchanChauhan / frappe-cheatsheet.md
Last active December 2, 2017 05:24
Cheatsheet for Frappe

Good to know frappe functions

frappe module

frappe.form_dict

Request parameters

frappe.get_doc(doctype, name)