actual start and end date calculation - call moved to submit and cancel of Time Log

This commit is contained in:
Neil Trini Lasrado 2015-02-04 11:35:10 +05:30
parent 2017796de7
commit de164c91e0
2 changed files with 1 additions and 5 deletions

View File

@ -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() {

View File

@ -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):