commit | 27e7c15c16fd8bb362c41c1e66dec749a628b257 | [log] [tgz] |
---|---|---|
author | alsum <engsum@gmail.com> | Wed Oct 24 13:23:34 2018 +0200 |
committer | alsum <engsum@gmail.com> | Wed Oct 24 13:23:34 2018 +0200 |
tree | 7a992edc92b52d02ddb25d534e4a3132c618462f | |
parent | 65bb91d1c7f7d4ac0779c9bae2ce5f0d1e784ed8 [diff] |
trigger set_current_asset_value when make asset_value_adjustment from asset form
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 29909f8..6b85a2b 100644 --- a/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.js +++ b/erpnext/assets/doctype/asset_value_adjustment/asset_value_adjustment.js
@@ -3,6 +3,7 @@ frappe.ui.form.on('Asset Value Adjustment', { setup: function(frm) { + frm.trigger("set_current_asset_value"); frm.add_fetch('company', 'cost_center', 'cost_center'); frm.set_query('cost_center', function() { return {