added fixtures for print formats
This commit is contained in:
parent
317415cb99
commit
80bb64fda3
File diff suppressed because one or more lines are too long
|
|
@ -8,8 +8,13 @@ app_license = "unlicense"
|
||||||
|
|
||||||
boot_session = "jey_erp.extend_party_types.add_company_to_party_account_types"
|
boot_session = "jey_erp.extend_party_types.add_company_to_party_account_types"
|
||||||
|
|
||||||
|
app_include_js = [
|
||||||
|
"/assets/jey_erp/js/account_tree_custom.js"
|
||||||
|
]
|
||||||
|
|
||||||
doctype_js = {
|
doctype_js = {
|
||||||
"Payment Entry": "public/js/payment_entry_mod.js"
|
"Payment Entry": "/public/js/payment_entry_mod.js",
|
||||||
|
"Account": "/public/js/account_tree_custom.js"
|
||||||
}
|
}
|
||||||
|
|
||||||
override_doctype_class = {
|
override_doctype_class = {
|
||||||
|
|
@ -29,6 +34,12 @@ def after_migrate_combined():
|
||||||
from jey_erp.custom_fields import create_custom_fields
|
from jey_erp.custom_fields import create_custom_fields
|
||||||
create_custom_fields()
|
create_custom_fields()
|
||||||
|
|
||||||
|
fixtures = [
|
||||||
|
{
|
||||||
|
"doctype": "Print Format"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
# Includes in <head>
|
# Includes in <head>
|
||||||
# ------------------
|
# ------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
frappe.provide("frappe.treeview_settings");
|
||||||
|
|
||||||
|
// Сохраняем оригинальные поля
|
||||||
|
var original_fields = frappe.treeview_settings["Account"].fields;
|
||||||
|
|
||||||
|
// Переопределяем массив полей, добавляя наши новые поля
|
||||||
|
frappe.treeview_settings["Account"].fields = original_fields.concat([
|
||||||
|
{
|
||||||
|
fieldtype: "Check",
|
||||||
|
fieldname: "is_account",
|
||||||
|
label: __("Is Account"),
|
||||||
|
description: __("Check if this is a regular account")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldtype: "Check",
|
||||||
|
fieldname: "is_sub_account",
|
||||||
|
label: __("Is Sub Account"),
|
||||||
|
description: __("Check if this is a sub account")
|
||||||
|
}
|
||||||
|
]);
|
||||||
Loading…
Reference in New Issue