Skip to content

Commit

Permalink
chore: change read only condition of asset quantity field (#38111)
Browse files Browse the repository at this point in the history
chore: change read only condition of asset quantity
  • Loading branch information
anandbaburajan committed Nov 15, 2023
1 parent 908b21f commit 6e0362d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions erpnext/assets/doctype/asset/asset.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,10 @@
"read_only": 1
},
{
"depends_on": "eval.doc.asset_quantity",
"fieldname": "asset_quantity",
"fieldtype": "Int",
"label": "Asset Quantity",
"read_only": 1
"read_only_depends_on": "eval:!doc.is_existing_asset && !doc.is_composite_asset"
},
{
"fieldname": "depr_entry_posting_status",
Expand Down Expand Up @@ -572,7 +571,7 @@
"link_fieldname": "target_asset"
}
],
"modified": "2023-10-27 17:03:46.629617",
"modified": "2023-11-15 17:40:17.315203",
"modified_by": "Administrator",
"module": "Assets",
"name": "Asset",
Expand Down

0 comments on commit 6e0362d

Please sign in to comment.