Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 signup: the person chooses the password and name on the confirm page 83c7aa6 2 weeks, 5 days ago History
locations.json · 2.9 KB · 101 lines
1{
2 "name": "locations",
3 "title": "Locations",
4 "version": 3,
5 "description": "Storage locations for the STOCK slice: a self-parent hierarchy (warehouse -> zone -> aisle -> shelf -> bin) plus virtual locations (customer, supplier) that stock_moves uses as counterparties for external origins/destinations. Reconciled against a private predecessor-system catalog audit, not part of this repo (its Location model: 'warehouse->bin hierarchy + virtual customer/supplier'). Locations themselves are ordinary owner-scoped content, unlike stock_moves (see schemas/stock_moves.json's own note on why that collection is append-mode and not content-searchable).",
6 "fields": [
7 {
8 "name": "id"
9 },
10 {
11 "name": "name",
12 "type": "text",
13 "required": true,
14 "label": "Name",
15 "validation": {
16 "min_length": 1,
17 "max_length": 200
18 }
19 },
20 {
21 "name": "location_type",
22 "type": "enum",
23 "label": "Type",
24 "default": "warehouse",
25 "enum": [
26 "warehouse",
27 "zone",
28 "aisle",
29 "shelf",
30 "bin",
31 "customer",
32 "supplier",
33 "virtual"
34 ],
35 "help": "Matches the predecessor system's Location type choices (reconciled against a private source audit, not part of this repo): a real physical hierarchy (warehouse/zone/aisle/shelf/bin) plus virtual counterparties (customer/supplier/virtual) that stock_moves points at for external origins/destinations. object_stock.py excludes customer/supplier/virtual from on-hand totals."
36 },
37 {
38 "name": "parent_id",
39 "label": "Parent Location",
40 "relation": {
41 "collection": "locations",
42 "display_field": "name"
43 },
44 "help": "Self-parent hierarchy: warehouse -> zone -> aisle -> shelf -> bin. Optional -- blank means a top-level location (e.g. a warehouse itself, or a virtual customer/supplier location with no physical parent)."
45 },
46 {
47 "name": "code",
48 "type": "text",
49 "label": "Code",
50 "validation": {
51 "max_length": 64
52 }
53 },
54 {
55 "name": "owner_id",
56 "type": "text",
57 "label": "Owner"
58 },
59 {
60 "name": "entity_id",
61 "type": "text",
62 "label": "Entity",
63 "relation": {
64 "collection": "entities",
65 "display_field": "name"
66 },
67 "help": "The set of books this belongs to (65 multi-entity). Optional during rollout; backfilled to the owner's default entity, set by the entity switcher on new writes."
68 },
69 {
70 "name": "created_at",
71 "type": "datetime",
72 "label": "Created",
73 "read_only": true
74 }
75 ],
76 "forms": {
77 "default": {
78 "fields": [
79 "name",
80 "location_type",
81 "parent_id",
82 "code"
83 ]
84 }
85 },
86 "views": {
87 "list_mode": "tree",
88 "list_fields": [
89 "name",
90 "location_type",
91 "code",
92 "parent_id"
93 ]
94 },
95 "search": {
96 "fields": [
97 "name",
98 "code"
99 ]
100 }
101}