Skip to content

Commit

Permalink
feat(Item Price): make UOM mandatory (backport #40588) (#41312)
Browse files Browse the repository at this point in the history
* feat(Item Price): make UOM mandatory (#40588)

(cherry picked from commit a61148c)

# Conflicts:
#	erpnext/stock/doctype/item_price/item_price.json

* chore: `conflicts`

---------

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
  • Loading branch information
3 people committed May 3, 2024
1 parent 112f96b commit cab0e30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions erpnext/stock/doctype/item_price/item_price.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@
"search_index": 1
},
{
"fetch_from": "item_code.stock_uom",
"fetch_if_empty": 1,
"fieldname": "uom",
"fieldtype": "Link",
"label": "UOM",
"options": "UOM"
"options": "UOM",
"reqd": 1
},
{
"default": "0",
Expand Down Expand Up @@ -220,7 +223,7 @@
"idx": 1,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-01-30 14:02:19.304854",
"modified": "2024-04-02 22:18:00.450641",
"modified_by": "Administrator",
"module": "Stock",
"name": "Item Price",
Expand Down
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/item_price/item_price.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ItemPrice(Document):
reference: DF.Data | None
selling: DF.Check
supplier: DF.Link | None
uom: DF.Link | None
uom: DF.Link
valid_from: DF.Date | None
valid_upto: DF.Date | None
# end: auto-generated types
Expand Down

0 comments on commit cab0e30

Please sign in to comment.