fix: reload parent after setting children

This commit is contained in:
Rushabh Mehta 2018-12-24 22:09:15 +05:30
parent c9b1a35ac3
commit fafbb0278f

View File

@ -1132,6 +1132,7 @@ def update_child_qty_rate(parent_doctype, trans_items, parent_doctype_name, chil
else:
child_item.save()
parent.reload()
parent.flags.ignore_validate_update_after_submit = True
parent.set_qty_as_per_stock_uom()
parent.calculate_taxes_and_totals()