cost_center overridden by company's default fix in SI (#14560)

This commit is contained in:
Zarrar 2018-06-18 15:49:12 +05:30 committed by Nabin Hait
parent efa191c72e
commit e0adb6bbd6

View File

@ -185,6 +185,7 @@ def _make_sales_invoice(source_name, target_doc=None, ignore_permissions=False):
target.run_method("calculate_taxes_and_totals")
def update_item(obj, target, source_parent):
target.cost_center = None
target.stock_qty = flt(obj.qty) * flt(obj.conversion_factor)
doclist = get_mapped_doc("Quotation", source_name, {