actual start and end date made blank if islocal
This commit is contained in:
parent
de164c91e0
commit
59a706585c
@ -7,6 +7,13 @@ $.extend(cur_frm.cscript, {
|
|||||||
cfn_set_fields(doc, dt, dn);
|
cfn_set_fields(doc, dt, dn);
|
||||||
|
|
||||||
this.frm.add_fetch("sales_order", "delivery_date", "expected_delivery_date");
|
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() {
|
before_submit: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user