actual start and end date made blank if islocal

This commit is contained in:
Neil Trini Lasrado 2015-02-04 11:44:24 +05:30
parent de164c91e0
commit 59a706585c

View File

@ -7,6 +7,13 @@ $.extend(cur_frm.cscript, {
cfn_set_fields(doc, dt, dn);
this.frm.add_fetch("sales_order", "delivery_date", "expected_delivery_date");
if(doc.__islocal) {
cur_frm.set_value({
"actual_start_date": "",
"actual_end_date": ""
});
}
},
before_submit: function() {