commit | 197a99ee354a1a67f4cb2fbc1d80ba4f40f61318 | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Mon Dec 16 16:18:33 2019 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Mon Dec 16 16:20:47 2019 +0530 |
tree | 4c2e754759ac215f88854a53df15e8161e7a8967 | |
parent | 60592e9d43b7e55e13d310eceab47489a15e2ded [diff] |
fix: incorrect children boms fetched
diff --git a/erpnext/manufacturing/doctype/bom/bom.py b/erpnext/manufacturing/doctype/bom/bom.py index e3ece56..f8146bb 100644 --- a/erpnext/manufacturing/doctype/bom/bom.py +++ b/erpnext/manufacturing/doctype/bom/bom.py
@@ -65,6 +65,7 @@ context.parents = [{'name': 'boms', 'title': _('All BOMs') }] def on_update(self): + frappe.cache().hdel('bom_children', self.name) self.check_recursion() self.update_stock_qty() self.update_exploded_items()