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:
commit
ee887f4db7
@ -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) {
|
asset: function(frm) {
|
||||||
frm.trigger("set_current_asset_value");
|
frm.trigger("set_current_asset_value");
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user