mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 07:22:13 +00:00
* feat(Item Price): make UOM mandatory (#40588)
(cherry picked from commit a61148c464)
# 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>
This commit is contained in:
@@ -52,10 +52,13 @@
|
|||||||
"search_index": 1
|
"search_index": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"fetch_from": "item_code.stock_uom",
|
||||||
|
"fetch_if_empty": 1,
|
||||||
"fieldname": "uom",
|
"fieldname": "uom",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "UOM",
|
"label": "UOM",
|
||||||
"options": "UOM"
|
"options": "UOM",
|
||||||
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "0",
|
"default": "0",
|
||||||
@@ -220,7 +223,7 @@
|
|||||||
"idx": 1,
|
"idx": 1,
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-01-30 14:02:19.304854",
|
"modified": "2024-04-02 22:18:00.450641",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Item Price",
|
"name": "Item Price",
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class ItemPrice(Document):
|
|||||||
reference: DF.Data | None
|
reference: DF.Data | None
|
||||||
selling: DF.Check
|
selling: DF.Check
|
||||||
supplier: DF.Link | None
|
supplier: DF.Link | None
|
||||||
uom: DF.Link | None
|
uom: DF.Link
|
||||||
valid_from: DF.Date | None
|
valid_from: DF.Date | None
|
||||||
valid_upto: DF.Date | None
|
valid_upto: DF.Date | None
|
||||||
# end: auto-generated types
|
# end: auto-generated types
|
||||||
|
|||||||
Reference in New Issue
Block a user