mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 15:00:27 +00:00
Merge branch '1310' of github.com:webnotes/erpnext
Conflicts: setup/doctype/setup_control/setup_control.py stock/doctype/stock_entry/stock_entry.py utilities/demo/demo_docs/Price_List.csv
This commit is contained in:
@@ -28,10 +28,10 @@ $.extend(erpnext, {
|
||||
}
|
||||
},
|
||||
|
||||
add_for_territory: function() {
|
||||
add_applicable_territory: function() {
|
||||
if(cur_frm.doc.__islocal &&
|
||||
wn.model.get_doclist(cur_frm.doc.doctype, cur_frm.doc.name).length === 1) {
|
||||
var territory = wn.model.add_child(cur_frm.doc, "For Territory",
|
||||
var territory = wn.model.add_child(cur_frm.doc, "Applicable Territory",
|
||||
"valid_for_territories");
|
||||
territory.territory = wn.defaults.get_default("territory");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user