disable save button
This commit is contained in:
parent
13d2e74886
commit
f3faead478
@ -15,6 +15,10 @@
|
|||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
cur_frm.cscript.refresh = function(doc) {
|
||||||
|
cur_frm.disable_save();
|
||||||
|
}
|
||||||
|
|
||||||
cur_frm.set_query("current_bom", function(doc) {
|
cur_frm.set_query("current_bom", function(doc) {
|
||||||
return erpnext.queries.bom({name: "!" + doc.new_bom});
|
return erpnext.queries.bom({name: "!" + doc.new_bom});
|
||||||
});
|
});
|
||||||
|
@ -19,6 +19,10 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
|||||||
refresh_field("company");
|
refresh_field("company");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cur_frm.cscript.refresh = function(doc) {
|
||||||
|
cur_frm.disable_save();
|
||||||
|
}
|
||||||
|
|
||||||
cur_frm.cscript.sales_order = function(doc,cdt,cdn) {
|
cur_frm.cscript.sales_order = function(doc,cdt,cdn) {
|
||||||
var d = locals[cdt][cdn];
|
var d = locals[cdt][cdn];
|
||||||
if (d.sales_order) {
|
if (d.sales_order) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user