2
0
mirror of https://github.com/inventree/demo-dataset.git synced 2025-04-27 21:16:50 +00:00

External locations (#59)

* Add external categories

* Add stock in external locations
This commit is contained in:
Oliver 2024-02-29 14:53:24 +11:00 committed by GitHub
parent 05a85c7442
commit 2649f4527d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43419,7 +43419,7 @@
"parent": 23,
"pathstring": "Category 0/Category 1",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 2,
@ -43457,7 +43457,7 @@
"parent": 25,
"pathstring": "Category 0/Category 1/Category 2/Category 3",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 4,
@ -43495,7 +43495,7 @@
"parent": 27,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 6,
@ -43533,7 +43533,7 @@
"parent": 29,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5/Category 6/Category 7",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 8,
@ -43571,7 +43571,7 @@
"parent": 31,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5/Category 6/Category 7/Category 8/Category 9",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 10,
@ -43609,7 +43609,7 @@
"parent": 33,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5/Category 6/Category 7/Category 8/Category 9/Category 10/Category 11",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 12,
@ -43647,7 +43647,7 @@
"parent": 35,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5/Category 6/Category 7/Category 8/Category 9/Category 10/Category 11/Category 12/Category 13",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 14,
@ -43685,7 +43685,7 @@
"parent": 37,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5/Category 6/Category 7/Category 8/Category 9/Category 10/Category 11/Category 12/Category 13/Category 14/Category 15",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 16,
@ -43723,7 +43723,7 @@
"parent": 39,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5/Category 6/Category 7/Category 8/Category 9/Category 10/Category 11/Category 12/Category 13/Category 14/Category 15/Category 16/Category 17",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 18,
@ -43761,7 +43761,7 @@
"parent": 41,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5/Category 6/Category 7/Category 8/Category 9/Category 10/Category 11/Category 12/Category 13/Category 14/Category 15/Category 16/Category 17/Category 18/Category 19",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 20,
@ -43799,7 +43799,7 @@
"parent": 43,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5/Category 6/Category 7/Category 8/Category 9/Category 10/C... 11/Category 12/Category 13/Category 14/Category 15/Category 16/Category 17/Category 18/Category 19/Category 20/Category 21",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 22,
@ -43837,7 +43837,7 @@
"parent": 45,
"pathstring": "Category 0/Category 1/Category 2/Category 3/Category 4/Category 5/Category 6/Category 7/Category 8/Category 9/Category 10/C... 13/Category 14/Category 15/Category 16/Category 17/Category 18/Category 19/Category 20/Category 21/Category 22/Category 23",
"default_location": null,
"structural": false,
"structural": true,
"default_keywords": null,
"icon": "",
"lft": 24,
@ -44927,9 +44927,9 @@
"model": "part.partpricing",
"pk": 438,
"fields": {
"updated": "2023-05-17T12:30:37.393Z",
"updated": "2024-02-29T02:26:11.054Z",
"currency": "USD",
"scheduled_for_update": false,
"scheduled_for_update": true,
"part": 20,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
@ -44973,9 +44973,9 @@
"model": "part.partpricing",
"pk": 439,
"fields": {
"updated": "2023-05-17T12:30:37.407Z",
"updated": "2024-02-29T02:26:25.574Z",
"currency": "USD",
"scheduled_for_update": false,
"scheduled_for_update": true,
"part": 21,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
@ -45111,9 +45111,9 @@
"model": "part.partpricing",
"pk": 442,
"fields": {
"updated": "2023-05-17T12:30:37.720Z",
"updated": "2024-02-29T02:31:31.418Z",
"currency": "USD",
"scheduled_for_update": false,
"scheduled_for_update": true,
"part": 22,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
@ -45847,9 +45847,9 @@
"model": "part.partpricing",
"pk": 458,
"fields": {
"updated": "2023-05-17T12:30:39.265Z",
"updated": "2024-02-29T02:34:19.188Z",
"currency": "USD",
"scheduled_for_update": false,
"scheduled_for_update": true,
"part": 38,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
@ -46307,9 +46307,9 @@
"model": "part.partpricing",
"pk": 468,
"fields": {
"updated": "2023-05-17T12:30:40.443Z",
"updated": "2024-02-29T02:32:35.702Z",
"currency": "USD",
"scheduled_for_update": false,
"scheduled_for_update": true,
"part": 48,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
@ -46951,9 +46951,9 @@
"model": "part.partpricing",
"pk": 482,
"fields": {
"updated": "2023-05-17T12:30:42.379Z",
"updated": "2024-02-29T02:34:06.643Z",
"currency": "USD",
"scheduled_for_update": false,
"scheduled_for_update": true,
"part": 60,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
@ -84106,7 +84106,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 2,
@ -84150,7 +84150,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 4,
@ -84194,7 +84194,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 6,
@ -84238,7 +84238,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 8,
@ -84282,7 +84282,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 10,
@ -84326,7 +84326,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 12,
@ -84370,7 +84370,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 14,
@ -84414,7 +84414,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 16,
@ -84458,7 +84458,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 18,
@ -84502,7 +84502,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 20,
@ -84546,7 +84546,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 22,
@ -84590,7 +84590,7 @@
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"structural": true,
"external": false,
"location_type": null,
"lft": 24,
@ -84621,6 +84621,50 @@
"level": 24
}
},
{
"model": "stock.stocklocation",
"pk": 37,
"fields": {
"metadata": {},
"name": "Offsite Storage",
"description": "External offsite storage",
"parent": null,
"pathstring": "Offsite Storage",
"barcode_data": "",
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"external": true,
"location_type": null,
"lft": 1,
"rght": 2,
"tree_id": 4,
"level": 0
}
},
{
"model": "stock.stocklocation",
"pk": 38,
"fields": {
"metadata": {},
"name": "PCB Assembler",
"description": "External PCB assembler",
"parent": null,
"pathstring": "PCB Assembler",
"barcode_data": "",
"barcode_hash": "",
"custom_icon": "",
"owner": null,
"structural": false,
"external": true,
"location_type": null,
"lft": 1,
"rght": 2,
"tree_id": 5,
"level": 0
}
},
{
"model": "users.owner",
"pk": 1,
@ -84727,7 +84771,7 @@
"pk": 1,
"fields": {
"password": "pbkdf2_sha256$600000$eW6hr1msXY3U1vkqy3K4wd$/egntyTaLBCUPnM1nM2LIbbDGjKfccvIOgexovlFKjo=",
"last_login": "2024-02-28T06:22:52.259Z",
"last_login": "2024-02-29T02:04:23.717Z",
"is_superuser": true,
"username": "admin",
"first_name": "",
@ -105468,6 +105512,151 @@
}
}
},
{
"model": "stock.stockitemtracking",
"pk": 1124,
"fields": {
"tracking_type": 1,
"item": 1209,
"date": "2024-02-29T02:26:11.089Z",
"notes": "",
"user": [
"admin"
],
"deltas": {
"status": 10,
"location": 37,
"quantity": 4000.0
}
}
},
{
"model": "stock.stockitemtracking",
"pk": 1125,
"fields": {
"tracking_type": 1,
"item": 1210,
"date": "2024-02-29T02:26:25.623Z",
"notes": "",
"user": [
"admin"
],
"deltas": {
"status": 10,
"location": 38,
"quantity": 4000.0
}
}
},
{
"model": "stock.stockitemtracking",
"pk": 1126,
"fields": {
"tracking_type": 1,
"item": 1211,
"date": "2024-02-29T02:31:31.451Z",
"notes": "",
"user": [
"admin"
],
"deltas": {
"status": 50,
"location": 37,
"quantity": 1234.0
}
}
},
{
"model": "stock.stockitemtracking",
"pk": 1127,
"fields": {
"tracking_type": 1,
"item": 1212,
"date": "2024-02-29T02:32:35.740Z",
"notes": "",
"user": [
"admin"
],
"deltas": {
"status": 10,
"location": 37,
"quantity": 123.0
}
}
},
{
"model": "stock.stockitemtracking",
"pk": 1128,
"fields": {
"tracking_type": 40,
"item": 1213,
"date": "2024-02-29T02:32:46.396Z",
"notes": "",
"user": [
"admin"
],
"deltas": {
"location": 37,
"quantity": 12.0,
"stockitem": 1212
}
}
},
{
"model": "stock.stockitemtracking",
"pk": 1129,
"fields": {
"tracking_type": 42,
"item": 1212,
"date": "2024-02-29T02:32:46.443Z",
"notes": "",
"user": [
"admin"
],
"deltas": {
"removed": 12.0,
"location": 37,
"quantity": 111.0,
"stockitem": 1213
}
}
},
{
"model": "stock.stockitemtracking",
"pk": 1130,
"fields": {
"tracking_type": 1,
"item": 1214,
"date": "2024-02-29T02:34:06.675Z",
"notes": "",
"user": [
"admin"
],
"deltas": {
"status": 10,
"location": 38,
"quantity": 400.0
}
}
},
{
"model": "stock.stockitemtracking",
"pk": 1131,
"fields": {
"tracking_type": 1,
"item": 1215,
"date": "2024-02-29T02:34:19.213Z",
"notes": "",
"user": [
"admin"
],
"deltas": {
"status": 10,
"location": 37,
"quantity": 762.0
}
}
},
{
"model": "stock.stockitem",
"pk": 2,
@ -150527,6 +150716,293 @@
"level": 0
}
},
{
"model": "stock.stockitem",
"pk": 1209,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"updated": "2024-02-29T02:26:11.080Z",
"parent": null,
"part": 20,
"supplier_part": null,
"location": 37,
"packaging": "",
"belongs_to": null,
"customer": null,
"serial": null,
"serial_int": 0,
"link": "",
"batch": "2024-2-29",
"quantity": "4000.00000",
"build": null,
"consumed_by": null,
"is_building": false,
"purchase_order": null,
"sales_order": null,
"expiry_date": null,
"stocktake_date": null,
"stocktake_user": null,
"review_needed": false,
"delete_on_deplete": true,
"status": 10,
"purchase_price_currency": "USD",
"purchase_price": null,
"owner": null,
"lft": 1,
"rght": 2,
"tree_id": 1092,
"level": 0
}
},
{
"model": "stock.stockitem",
"pk": 1210,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"updated": "2024-02-29T02:26:25.610Z",
"parent": null,
"part": 21,
"supplier_part": 71,
"location": 38,
"packaging": "",
"belongs_to": null,
"customer": null,
"serial": null,
"serial_int": 0,
"link": "",
"batch": "2024-2-29",
"quantity": "4000.00000",
"build": null,
"consumed_by": null,
"is_building": false,
"purchase_order": null,
"sales_order": null,
"expiry_date": null,
"stocktake_date": null,
"stocktake_user": null,
"review_needed": false,
"delete_on_deplete": true,
"status": 10,
"purchase_price_currency": "USD",
"purchase_price": null,
"owner": null,
"lft": 1,
"rght": 2,
"tree_id": 1093,
"level": 0
}
},
{
"model": "stock.stockitem",
"pk": 1211,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"updated": "2024-02-29T02:31:31.444Z",
"parent": null,
"part": 22,
"supplier_part": 107,
"location": 37,
"packaging": "reel",
"belongs_to": null,
"customer": null,
"serial": null,
"serial_int": 0,
"link": "",
"batch": "2024-2-29",
"quantity": "1234.00000",
"build": null,
"consumed_by": null,
"is_building": false,
"purchase_order": null,
"sales_order": null,
"expiry_date": null,
"stocktake_date": null,
"stocktake_user": null,
"review_needed": false,
"delete_on_deplete": true,
"status": 50,
"purchase_price_currency": "USD",
"purchase_price": null,
"owner": null,
"lft": 1,
"rght": 2,
"tree_id": 1094,
"level": 0
}
},
{
"model": "stock.stockitem",
"pk": 1212,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"updated": "2024-02-29T02:32:46.440Z",
"parent": null,
"part": 48,
"supplier_part": 86,
"location": 37,
"packaging": "",
"belongs_to": null,
"customer": null,
"serial": null,
"serial_int": 0,
"link": "",
"batch": "2024-2-29",
"quantity": "111.00000",
"build": null,
"consumed_by": null,
"is_building": false,
"purchase_order": null,
"sales_order": null,
"expiry_date": null,
"stocktake_date": null,
"stocktake_user": null,
"review_needed": false,
"delete_on_deplete": true,
"status": 10,
"purchase_price_currency": "USD",
"purchase_price": null,
"owner": null,
"lft": 1,
"rght": 4,
"tree_id": 1095,
"level": 0
}
},
{
"model": "stock.stockitem",
"pk": 1213,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"updated": "2024-02-29T02:32:46.329Z",
"parent": 1212,
"part": 48,
"supplier_part": 86,
"location": 37,
"packaging": "",
"belongs_to": null,
"customer": null,
"serial": null,
"serial_int": 0,
"link": "",
"batch": "2024-2-29",
"quantity": "12.00000",
"build": null,
"consumed_by": null,
"is_building": false,
"purchase_order": null,
"sales_order": null,
"expiry_date": null,
"stocktake_date": null,
"stocktake_user": null,
"review_needed": false,
"delete_on_deplete": true,
"status": 10,
"purchase_price_currency": "USD",
"purchase_price": null,
"owner": null,
"lft": 2,
"rght": 3,
"tree_id": 1095,
"level": 1
}
},
{
"model": "stock.stockitem",
"pk": 1214,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"updated": "2024-02-29T02:34:06.668Z",
"parent": null,
"part": 60,
"supplier_part": null,
"location": 38,
"packaging": "",
"belongs_to": null,
"customer": null,
"serial": null,
"serial_int": 0,
"link": "",
"batch": "2024-2-29",
"quantity": "400.00000",
"build": null,
"consumed_by": null,
"is_building": false,
"purchase_order": null,
"sales_order": null,
"expiry_date": null,
"stocktake_date": null,
"stocktake_user": null,
"review_needed": false,
"delete_on_deplete": true,
"status": 10,
"purchase_price_currency": "USD",
"purchase_price": null,
"owner": null,
"lft": 1,
"rght": 2,
"tree_id": 1096,
"level": 0
}
},
{
"model": "stock.stockitem",
"pk": 1215,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"updated": "2024-02-29T02:34:19.206Z",
"parent": null,
"part": 38,
"supplier_part": 154,
"location": 37,
"packaging": "",
"belongs_to": null,
"customer": null,
"serial": null,
"serial_int": 0,
"link": "",
"batch": "2024-2-29",
"quantity": "762.00000",
"build": null,
"consumed_by": null,
"is_building": false,
"purchase_order": null,
"sales_order": null,
"expiry_date": null,
"stocktake_date": null,
"stocktake_user": null,
"review_needed": false,
"delete_on_deplete": true,
"status": 10,
"purchase_price_currency": "USD",
"purchase_price": null,
"owner": null,
"lft": 1,
"rght": 2,
"tree_id": 1097,
"level": 0
}
},
{
"model": "part.partstar",
"pk": 1,