Skip to content

Instantly share code, notes, and snippets.

@batonac
batonac / flake.nix
Created January 7, 2026 20:22
CAI Standalone Flake
{
description = "CAI Development Environment - Nix Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-python = {
url = "github:cachix/nixpkgs-python";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
@batonac
batonac / item_stock_settings.js
Last active February 23, 2026 16:26
Hierarchical Editable Frappe Script Report
frappe.query_reports["Item Stock Settings"] = {
filters: [
{
fieldname: "item_group",
label: __("Item Group"),
fieldtype: "Link",
options: "Item Group",
},
],