diff --git a/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.js b/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.js index 29909f8bb9..a6e6974c48 100644 --- a/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.js +++ b/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.js @@ -13,7 +13,11 @@ frappe.ui.form.on('Asset Value Adjustment', { } }); }, - + onload: function(frm) { + if(frm.is_new() && frm.doc.asset) { + frm.trigger("set_current_asset_value"); + } + }, asset: function(frm) { frm.trigger("set_current_asset_value"); },