소스 검색

Merge pull request #4655 from manassolanki/fix-import

fix the opening invoice creation tool
version-14
Saurabh 7 년 전
committed by GitHub
부모
커밋
65c68f357e
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. +7
    -2
      frappe/public/js/frappe/form/grid.js

+ 7
- 2
frappe/public/js/frappe/form/grid.js 파일 보기

@@ -645,10 +645,15 @@ frappe.ui.form.Grid = Class.extend({
data.push([__("Do not edit headers which are preset in the template")]);
data.push(["------"]);
$.each(frappe.get_meta(me.df.options).fields, function(i, df) {
if(frappe.model.is_value_type(df.fieldtype)) {
// don't include the hidden field in the template
if(frappe.model.is_value_type(df.fieldtype) && !df.hidden) {
data[1].push(df.label);
data[2].push(df.fieldname);
data[3].push(df.description || "");
let description = (df.description || "") + ' ';
if (df.fieldtype === "Date") {
description += frappe.boot.sysdefaults.date_format;
}
data[3].push(description);
docfields.push(df);
}
});


불러오는 중...
취소
저장