Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
- name: Run Tests
working-directory: /home/runner/frappe-bench
run: |
set -o pipefail
source env/bin/activate
cd apps/beam
poetry install
Expand Down
2 changes: 2 additions & 0 deletions beam/beam/scan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,12 @@ def get_form_action(barcode_doc: frappe._dict, context: frappe._dict) -> list[di
elif has_frm_override:
# A beam_frm override handles this form — skip get_item_details() which would
# fail for forms without a standard "{doctype} Item" child table.
item_defaults = frappe.db.get_value("Item", barcode_doc.doc.name, ["stock_uom"], as_dict=True)
target = frappe._dict(
{
"doctype": context.frm,
"item_code": barcode_doc.doc.name,
"uom": item_defaults.stock_uom if item_defaults else None,
}
)
else:
Expand Down
Loading