fix: re-validate warehouse after 'update items' (#31203)

This commit is contained in:
Ankush Menat 2022-06-01 12:55:10 +05:30 committed by GitHub
parent 03a24ce774
commit c84e11ac82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2661,7 +2661,8 @@ def update_child_qty_rate(parent_doctype, trans_items, parent_doctype_name, chil
parent.update_reserved_qty_for_subcontract()
parent.create_raw_materials_supplied("supplied_items")
parent.save()
else:
else: # Sales Order
parent.validate_warehouse()
parent.update_reserved_qty()
parent.update_project()
parent.update_prevdoc_status("submit")