Merge pull request #19960 from rohitwaghchaure/fixed_incorrect_child_bom_fecthed_develop

fix: incorrect child boms fetched
This commit is contained in:
rohitwaghchaure 2019-12-16 17:00:35 +05:30 committed by GitHub
commit 741f64a51d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ class BOM(WebsiteGenerator):
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()