Skip to content

Commit 7e4c1d5

Browse files
authored
fix: move default to creation instead of schema (#336)
1 parent c2579e0 commit 7e4c1d5

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ repos:
5353
additional_dependencies: ['flake8-bugbear']
5454

5555
- repo: https://github.com/agritheory/test_utils
56-
rev: v1.20.0
56+
rev: v1.20.1
5757
hooks:
5858
- id: update_pre_commit_config
5959
- id: validate_frappe_project

beam/beam/doctype/beam_settings/beam_settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"fieldtype": "Column Break"
8686
},
8787
{
88-
"default": "[\"Item\", \"Warehouse\"]",
8988
"fieldname": "auto_barcode_doctypes",
9089
"fieldtype": "JSON",
9190
"hidden": 1,

beam/beam/doctype/beam_settings/beam_settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class BEAMSettings(Document):
1313
def create_beam_settings(company: str) -> str:
1414
beams = frappe.new_doc("BEAM Settings")
1515
beams.company = company
16+
beams.auto_barcode_doctypes = '["Item", "Warehouse"]'
1617
beams.save()
1718
return beams
1819

0 commit comments

Comments
 (0)