Browse Source

Merge pull request #1819 from saurabh6790/document_flow_fix

[fix] check islocal condition before calling previous doc flow
version-14
Rushabh Mehta 9 years ago
committed by GitHub
parent
commit
a512ca4538
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      frappe/public/js/frappe/form/document_flow.js

+ 5
- 3
frappe/public/js/frappe/form/document_flow.js View File

@@ -46,8 +46,11 @@ frappe.ui.form.DocumentFlow = Class.extend({
return false; return false;
} }
}); });
this.mark_completed_flow()

if (!this.frm.doc.__islocal) {
this.mark_completed_flow()
}

}, },


get_linked_docs: function(for_doctype) { get_linked_docs: function(for_doctype) {
@@ -63,7 +66,6 @@ frappe.ui.form.DocumentFlow = Class.extend({
mark_completed_flow: function() { mark_completed_flow: function() {
var me = this; var me = this;
frappe.call({ frappe.call({
method: "frappe.desk.form.document_flow.get_document_completion_status", method: "frappe.desk.form.document_flow.get_document_completion_status",
args: { args: {


Loading…
Cancel
Save