fix: UOM autocomplete broken

All new recent sites seem to have all UOMs as disabled by default. The
desired behaviour is exact opposite of this.

(cherry picked from commit 33aad4b950)
This commit is contained in:
Ankush Menat
2022-01-11 17:06:31 +05:30
committed by Ankush Menat
parent 819346f69f
commit c1fbd2308c
2 changed files with 7 additions and 1 deletions

View File

@@ -350,7 +350,8 @@ def add_uom_data():
"doctype": "UOM",
"uom_name": _(d.get("uom_name")),
"name": _(d.get("uom_name")),
"must_be_whole_number": d.get("must_be_whole_number")
"must_be_whole_number": d.get("must_be_whole_number"),
"enabled": 1,
}).db_insert()
# bootstrap uom conversion factors