actual start and end date calculation - call moved to submit and cancel of Time Log
This commit is contained in:
parent
2017796de7
commit
de164c91e0
@ -7,11 +7,6 @@ $.extend(cur_frm.cscript, {
|
||||
cfn_set_fields(doc, dt, dn);
|
||||
|
||||
this.frm.add_fetch("sales_order", "delivery_date", "expected_delivery_date");
|
||||
|
||||
return this.frm.call({
|
||||
doc: this.frm.doc,
|
||||
method: "set_actual_dates"
|
||||
});
|
||||
},
|
||||
|
||||
before_submit: function() {
|
||||
|
@ -111,6 +111,7 @@ class TimeLog(Document):
|
||||
pro_order.ignore_validate_update_after_submit = True
|
||||
pro_order.update_operation_status()
|
||||
pro_order.calculate_operating_cost()
|
||||
pro_order.set_actual_dates()
|
||||
pro_order.save()
|
||||
|
||||
def get_operation_start_end_time(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user