mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
addchild will never save added doc
This commit is contained in:
@@ -70,7 +70,8 @@ class DocType:
|
||||
raise Exception
|
||||
|
||||
if not cstr(self.doc.stock_uom) in check_list :
|
||||
child = addchild( self.doc, 'uom_conversion_details', 'UOM Conversion Detail', 1, self.doclist)
|
||||
child = addchild( self.doc, 'uom_conversion_details',
|
||||
'UOM Conversion Detail', self.doclist)
|
||||
child.uom = self.doc.stock_uom
|
||||
child.conversion_factor = 1
|
||||
child.save()
|
||||
|
||||
Reference in New Issue
Block a user