[Fix] Set default tax on quotation when it's making from the lead

This commit is contained in:
Rohit Waghchaure 2017-02-02 17:15:05 +05:30
parent 10eb123b49
commit ade06f940c

View File

@ -154,6 +154,9 @@ def make_quotation(source_name, target_doc=None):
} }
}}, target_doc) }}, target_doc)
target_doc.quotation_to = "Lead" target_doc.quotation_to = "Lead"
target_doc.run_method("set_missing_values")
target_doc.run_method("set_other_charges")
target_doc.run_method("calculate_taxes_and_totals")
return target_doc return target_doc