Merge pull request #15796 from Alsum/set_current_asset_value

trigger set_current_asset_value when make asset_value_adjustment from asset form
This commit is contained in:
Nabin Hait 2018-11-13 12:42:28 +05:30 committed by GitHub
commit ee887f4db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
},