Merge pull request #13918 from manassolanki/item-level-defualts

[enhancement] add the item defaults in the child-table for multi-company
This commit is contained in:
rohitwaghchaure
2018-05-16 14:04:47 +05:30
committed by GitHub
29 changed files with 852 additions and 152 deletions

View File

@@ -110,7 +110,10 @@ def create_items(args_data):
"is_stock_item": 1,
"item_group": _("Products"),
"stock_uom": _(args.get("item_uom_" + str(i))),
"default_warehouse": default_warehouse
"item_defaults": [{
"default_warehouse": default_warehouse,
"company": defaults.get("company_name")
}]
}).insert()
except frappe.NameError: