Doctype启用日历和甘特图
1, Doctype 启用日历和甘特图:
2, 添加 invoice_check_calendar.js 文件。 并且添加代码:
frappe.views.calendar["Invoice Check"] = {
// fields:["invoice_date"],
field_map: {
"start": "invoice_number",
},
gantt: false,
get_events_method: "frappe.desk.doctype.event.event.get_events"
}
具体的语法参考如下链接。
参考:
https://frappeframework.com/docs/v14/user/en/desk#calendar-view
https://gitee.com/yuzelin/erpnext-chinese-docs/issues/I7HPFD#