commit | fafbb0278f6fd620c2e85944b1c1ee2f321ea0af | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Mon Dec 24 22:09:15 2018 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Mon Dec 24 22:09:15 2018 +0530 |
tree | 9ab48522b2eb576656bd316eb782e35032ce7154 | |
parent | c9b1a35ac31c1822748d9c47cc34d776ba19c0c4 [diff] |
fix: reload parent after setting children
diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 2bc5d65..54f5867 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py
@@ -1132,6 +1132,7 @@ 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()