Bundle items (#125)

* Add connectors with bundle assemblies

* Add PO, and receive stock
This commit is contained in:
Oliver
2026-07-07 18:01:16 +10:00
committed by GitHub
parent 63ce66c89d
commit 50fbdd3897
7 changed files with 663 additions and 6 deletions
+663 -6
View File
@@ -2,13 +2,13 @@
{
"metadata": true,
"comment": "This file contains a dump of the InvenTree database",
"exported_at": "2026-07-06T14:49:12.195856",
"exported_at_utc": "2026-07-06T14:49:12.195881",
"exported_at": "2026-07-07T03:57:34.571528",
"exported_at_utc": "2026-07-07T03:57:34.571558",
"source_version": "1.5.0 dev",
"api_version": 516,
"api_version": 517,
"django_version": "5.2.15",
"python_version": "3.12.13",
"source_commit": "99d6f6a",
"source_commit": "c5944e2",
"installed_apps": [
"InvenTree",
"allauth",
@@ -13419,6 +13419,50 @@
"tax_id": ""
}
},
{
"model": "company.company",
"pk": 48,
"fields": {
"metadata": {},
"notes": null,
"image": "company_images/company_48_img.jpg",
"name": "AMASS",
"description": "High current connectors",
"website": "https://www.amassconnectors.com/",
"phone": "",
"email": "",
"contact": "",
"link": "",
"active": true,
"is_customer": false,
"is_supplier": true,
"is_manufacturer": true,
"currency": "USD",
"tax_id": ""
}
},
{
"model": "company.company",
"pk": 49,
"fields": {
"metadata": {},
"notes": null,
"image": "company_images/company_49_img.png",
"name": "Amazon Australia",
"description": "Online retailer",
"website": "https://www.amazon.com.au",
"phone": "",
"email": "",
"contact": "",
"link": "",
"active": true,
"is_customer": false,
"is_supplier": true,
"is_manufacturer": false,
"currency": "AUD",
"tax_id": ""
}
},
{
"model": "company.contact",
"pk": 1,
@@ -18360,6 +18404,36 @@
"description": ""
}
},
{
"model": "company.manufacturerpart",
"pk": 198,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"part": 922,
"manufacturer": 48,
"MPN": "XT90-F",
"link": null,
"description": null
}
},
{
"model": "company.manufacturerpart",
"pk": 199,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"part": 923,
"manufacturer": 48,
"MPN": "XT90-M",
"link": null,
"description": null
}
},
{
"model": "company.supplierpart",
"pk": 11,
@@ -39366,6 +39440,60 @@
"availability_updated": null
}
},
{
"model": "company.supplierpart",
"pk": 1040,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"updated": "2026-07-07T03:36:43.466Z",
"part": 924,
"supplier": 49,
"SKU": "B0D2VKTYJD",
"active": true,
"primary": true,
"manufacturer_part": null,
"link": "https://www.amazon.com.au/Connector-Connectors-Replacement-Airplane-Helicopter/dp/B0D2VKTYJD",
"description": null,
"note": null,
"base_cost": "0.000",
"packaging": null,
"pack_quantity": "1",
"pack_quantity_native": "1.0000000000",
"multiple": 1,
"available": "0.000",
"availability_updated": null
}
},
{
"model": "company.supplierpart",
"pk": 1041,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"updated": "2026-07-07T03:38:48.638Z",
"part": 925,
"supplier": 49,
"SKU": "B06ZY34369",
"active": true,
"primary": true,
"manufacturer_part": null,
"link": "https://www.amazon.com.au/Amass-Female-Bullet-Connectors-Battery/dp/B06ZY34369?th=1",
"description": null,
"note": null,
"base_cost": "0.000",
"packaging": null,
"pack_quantity": "1",
"pack_quantity_native": "1.0000000000",
"multiple": 1,
"available": "0.000",
"availability_updated": null
}
},
{
"model": "company.supplierpricebreak",
"pk": 2,
@@ -51290,6 +51418,50 @@
"destination": null
}
},
{
"model": "order.purchaseorderlineitem",
"pk": 42,
"fields": {
"metadata": {},
"quantity": "5.00000",
"line": "1",
"line_int": 1,
"reference": "",
"notes": "",
"link": "",
"target_date": null,
"project_code": null,
"order": 20,
"part": 1040,
"received": "0.00000",
"purchase_price_currency": "AUD",
"purchase_price": "20.000000",
"build_order": null,
"destination": null
}
},
{
"model": "order.purchaseorderlineitem",
"pk": 43,
"fields": {
"metadata": {},
"quantity": "40.00000",
"line": "2",
"line_int": 2,
"reference": "",
"notes": "",
"link": "",
"target_date": null,
"project_code": null,
"order": 20,
"part": 1041,
"received": "10.00000",
"purchase_price_currency": "AUD",
"purchase_price": "30.000000",
"build_order": null,
"destination": null
}
},
{
"model": "order.purchaseorderextraline",
"pk": 1,
@@ -73886,6 +74058,98 @@
"sale_history_max": null
}
},
{
"model": "part.partpricing",
"pk": 849,
"fields": {
"updated": "2026-07-07T03:42:44.302Z",
"currency": "USD",
"scheduled_for_update": false,
"part": 924,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
"bom_cost_max_currency": "USD",
"bom_cost_max": null,
"purchase_cost_min_currency": "USD",
"purchase_cost_min": null,
"purchase_cost_max_currency": "USD",
"purchase_cost_max": null,
"internal_cost_min_currency": "USD",
"internal_cost_min": null,
"internal_cost_max_currency": "USD",
"internal_cost_max": null,
"supplier_price_min_currency": "USD",
"supplier_price_min": null,
"supplier_price_max_currency": "USD",
"supplier_price_max": null,
"variant_cost_min_currency": "USD",
"variant_cost_min": null,
"variant_cost_max_currency": "USD",
"variant_cost_max": null,
"override_min_currency": "USD",
"override_min": null,
"override_max_currency": "USD",
"override_max": null,
"overall_min_currency": "USD",
"overall_min": null,
"overall_max_currency": "USD",
"overall_max": null,
"sale_price_min_currency": "USD",
"sale_price_min": null,
"sale_price_max_currency": "USD",
"sale_price_max": null,
"sale_history_min_currency": "USD",
"sale_history_min": null,
"sale_history_max_currency": "USD",
"sale_history_max": null
}
},
{
"model": "part.partpricing",
"pk": 850,
"fields": {
"updated": "2026-07-07T03:42:44.306Z",
"currency": "USD",
"scheduled_for_update": false,
"part": 925,
"bom_cost_min_currency": "USD",
"bom_cost_min": null,
"bom_cost_max_currency": "USD",
"bom_cost_max": null,
"purchase_cost_min_currency": "USD",
"purchase_cost_min": null,
"purchase_cost_max_currency": "USD",
"purchase_cost_max": null,
"internal_cost_min_currency": "USD",
"internal_cost_min": null,
"internal_cost_max_currency": "USD",
"internal_cost_max": null,
"supplier_price_min_currency": "USD",
"supplier_price_min": null,
"supplier_price_max_currency": "USD",
"supplier_price_max": null,
"variant_cost_min_currency": "USD",
"variant_cost_min": null,
"variant_cost_max_currency": "USD",
"variant_cost_max": null,
"override_min_currency": "USD",
"override_min": null,
"override_max_currency": "USD",
"override_max": null,
"overall_min_currency": "USD",
"overall_min": null,
"overall_max_currency": "USD",
"overall_max": null,
"sale_price_min_currency": "USD",
"sale_price_min": null,
"sale_price_max_currency": "USD",
"sale_price_max": null,
"sale_history_min_currency": "USD",
"sale_history_min": null,
"sale_history_max_currency": "USD",
"sale_history_max": null
}
},
{
"model": "part.partstocktake",
"pk": 1,
@@ -94724,6 +94988,94 @@
"allow_variants": false
}
},
{
"model": "part.bomitem",
"pk": 393,
"fields": {
"metadata": {},
"part": 924,
"sub_part": 923,
"raw_amount": "5",
"quantity": "5.00000",
"optional": false,
"consumable": false,
"setup_quantity": "0.00000",
"attrition": "0.000",
"rounding_multiple": null,
"reference": "",
"note": "",
"checksum": "b'r*\\xd5\\xf8\\xf1\\xd3\\x0c\\x97\\xc2\\xf3\\x14\\xc3p\\x96\\xfe\\xe4'",
"validated": true,
"inherited": false,
"allow_variants": false
}
},
{
"model": "part.bomitem",
"pk": 394,
"fields": {
"metadata": {},
"part": 924,
"sub_part": 922,
"raw_amount": "5",
"quantity": "5.00000",
"optional": false,
"consumable": false,
"setup_quantity": "0.00000",
"attrition": "0.000",
"rounding_multiple": null,
"reference": "",
"note": "",
"checksum": "b'\\xb1Q\\xf8\\x1a\\xec\\xfa\"/{-\\xeeS\\xe99D\\x08'",
"validated": true,
"inherited": false,
"allow_variants": false
}
},
{
"model": "part.bomitem",
"pk": 395,
"fields": {
"metadata": {},
"part": 925,
"sub_part": 923,
"raw_amount": "10",
"quantity": "10.00000",
"optional": false,
"consumable": false,
"setup_quantity": "0.00000",
"attrition": "0.000",
"rounding_multiple": null,
"reference": "",
"note": "",
"checksum": "b'\\xee)\\x11Gz\\xaeI\\x8b\\x04|\\xbd\\x19\\xef\\x03\\xa6\\x90'",
"validated": true,
"inherited": false,
"allow_variants": false
}
},
{
"model": "part.bomitem",
"pk": 396,
"fields": {
"metadata": {},
"part": 925,
"sub_part": 922,
"raw_amount": "10",
"quantity": "10.00000",
"optional": false,
"consumable": false,
"setup_quantity": "0.00000",
"attrition": "0.000",
"rounding_multiple": null,
"reference": "",
"note": "",
"checksum": "b'NF\\x93\\x99\\xeb\\x1f\\x1b\\xado\\xc1\\xffT8-\\xbd&'",
"validated": true,
"inherited": false,
"allow_variants": false
}
},
{
"model": "part.bomitemsubstitute",
"pk": 1,
@@ -95447,7 +95799,7 @@
"pk": 1,
"fields": {
"password": "pbkdf2_sha256$1000000$CWvgH2EOSzLLJgYY64YHjS$S5ppC9xcNnjL5GLQQh3oTTwahpM4yYK1HyOvXc0pyiE=",
"last_login": "2026-07-06T14:46:50.078Z",
"last_login": "2026-07-07T03:25:37.031Z",
"is_superuser": true,
"username": "admin",
"first_name": "Adam",
@@ -124337,6 +124689,25 @@
}
}
},
{
"model": "stock.stockitemtracking",
"pk": 1442,
"fields": {
"tracking_type": 70,
"item": 1387,
"part": 925,
"date": "2026-07-07T03:56:22.585Z",
"notes": "",
"user": [
"admin"
],
"deltas": {
"location": 37,
"quantity": 10.0,
"purchaseorder": 20
}
}
},
{
"model": "stock.stockitem",
"pk": 2,
@@ -178033,6 +178404,48 @@
"level": 0
}
},
{
"model": "stock.stockitem",
"pk": 1387,
"fields": {
"metadata": null,
"notes": "",
"barcode_data": "",
"barcode_hash": "",
"updated": "2026-07-07T03:56:22.580Z",
"parent": null,
"part": 925,
"supplier_part": 1041,
"location": 37,
"packaging": null,
"belongs_to": null,
"customer": null,
"serial": "",
"serial_int": 0,
"link": "",
"batch": "",
"quantity": "10.00000",
"build": null,
"consumed_by": null,
"is_building": false,
"purchase_order": 20,
"sales_order": null,
"expiry_date": null,
"stocktake_date": null,
"stocktake_user": null,
"creation_date": "2026-07-07T03:56:22.580Z",
"delete_on_deplete": true,
"status": 50,
"purchase_price_currency": "AUD",
"purchase_price": "30.000000",
"owner": null,
"status_custom_key": 150,
"lft": 1,
"rght": 2,
"tree_id": 1250,
"level": 0
}
},
{
"model": "report.labeltemplate",
"pk": 1,
@@ -183041,7 +183454,7 @@
"multiple": 1,
"lft": 1,
"rght": 2,
"tree_id": 406,
"tree_id": 410,
"level": 0
}
},
@@ -200106,6 +200519,214 @@
"level": 0
}
},
{
"model": "part.part",
"pk": 922,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"image": "part_images/xt90-f.jpg",
"name": "XT90-F",
"is_template": false,
"variant_of": null,
"description": "AMASS XT90 connector, female",
"keywords": null,
"category": 13,
"IPN": "",
"revision": "",
"revision_of": null,
"link": null,
"default_location": null,
"default_expiry": 0,
"minimum_stock": "0.000000",
"maximum_stock": "0.000000",
"units": "",
"assembly": false,
"component": true,
"trackable": false,
"testable": false,
"purchaseable": true,
"salable": false,
"active": true,
"locked": false,
"virtual": false,
"consumable": false,
"bom_validated": false,
"bom_checksum": "",
"bom_checked_by": null,
"bom_checked_date": null,
"creation_date": "2026-07-07",
"creation_user": [
"admin"
],
"responsible_owner": null,
"base_cost": "0.000000",
"multiple": 1,
"lft": 1,
"rght": 2,
"tree_id": 408,
"level": 0
}
},
{
"model": "part.part",
"pk": 923,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"image": "part_images/xt90-m.jpg",
"name": "XT90-M",
"is_template": false,
"variant_of": null,
"description": "AMASS XT90 connector, male",
"keywords": null,
"category": 13,
"IPN": "",
"revision": "",
"revision_of": null,
"link": null,
"default_location": null,
"default_expiry": 0,
"minimum_stock": "0.000000",
"maximum_stock": "0.000000",
"units": "",
"assembly": false,
"component": true,
"trackable": false,
"testable": false,
"purchaseable": true,
"salable": false,
"active": true,
"locked": false,
"virtual": false,
"consumable": false,
"bom_validated": false,
"bom_checksum": "",
"bom_checked_by": null,
"bom_checked_date": null,
"creation_date": "2026-07-07",
"creation_user": [
"admin"
],
"responsible_owner": null,
"base_cost": "0.000000",
"multiple": 1,
"lft": 1,
"rght": 2,
"tree_id": 409,
"level": 0
}
},
{
"model": "part.part",
"pk": 924,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"image": "part_images/xt-5.jpg",
"name": "XT90 5-Pack",
"is_template": false,
"variant_of": null,
"description": "5 pairs of XT90 connectors",
"keywords": null,
"category": 13,
"IPN": "",
"revision": "",
"revision_of": null,
"link": null,
"default_location": null,
"default_expiry": 0,
"minimum_stock": "0.000000",
"maximum_stock": "0.000000",
"units": "",
"assembly": true,
"component": false,
"trackable": false,
"testable": false,
"purchaseable": true,
"salable": false,
"active": true,
"locked": false,
"virtual": false,
"consumable": false,
"bom_validated": true,
"bom_checksum": "b'\\x9f\\xb0\\t\\x19\\x01\\x95>\\xf6/&\\x98C\\x87X\\xdb\\x16'",
"bom_checked_by": [
"admin"
],
"bom_checked_date": "2026-07-07",
"creation_date": "2026-07-07",
"creation_user": [
"admin"
],
"responsible_owner": null,
"base_cost": "0.000000",
"multiple": 1,
"lft": 1,
"rght": 2,
"tree_id": 407,
"level": 0
}
},
{
"model": "part.part",
"pk": 925,
"fields": {
"metadata": {},
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"image": "part_images/xt-10.jpg",
"name": "XT90 10-Pack",
"is_template": false,
"variant_of": null,
"description": "10 pairs of XT90 connectors",
"keywords": null,
"category": 13,
"IPN": "",
"revision": "",
"revision_of": null,
"link": null,
"default_location": null,
"default_expiry": 0,
"minimum_stock": "0.000000",
"maximum_stock": "0.000000",
"units": "",
"assembly": true,
"component": false,
"trackable": false,
"testable": false,
"purchaseable": true,
"salable": false,
"active": true,
"locked": false,
"virtual": false,
"consumable": false,
"bom_validated": true,
"bom_checksum": "b'\\xba\\xa8\\x81\\x02\\x03J\\x9b\\xd5\"n<\\xe05\\xcbP\\x98'",
"bom_checked_by": [
"admin"
],
"bom_checked_date": "2026-07-07",
"creation_date": "2026-07-07",
"creation_user": [
"admin"
],
"responsible_owner": null,
"base_cost": "0.000000",
"multiple": 1,
"lft": 1,
"rght": 2,
"tree_id": 406,
"level": 0
}
},
{
"model": "order.transferorder",
"pk": 1,
@@ -201987,6 +202608,42 @@
"status_custom_key": null
}
},
{
"model": "order.purchaseorder",
"pk": 20,
"fields": {
"metadata": {},
"reference_int": 20,
"notes": null,
"barcode_data": "",
"barcode_hash": "",
"total_price_currency": "AUD",
"total_price": "1300.000000",
"order_currency": null,
"description": "Ordering bags of connectors",
"project_code": 4,
"link": "",
"start_date": null,
"target_date": "2026-07-31",
"creation_date": "2026-07-07",
"created_by": [
"admin"
],
"issue_date": "2026-07-07",
"updated_at": "2026-07-07T03:56:01.997Z",
"responsible": 2,
"contact": null,
"address": null,
"reference": "PO0020",
"status": 20,
"supplier": 49,
"supplier_reference": "",
"received_by": null,
"complete_date": null,
"destination": null,
"status_custom_key": null
}
},
{
"model": "common.parameter",
"pk": 14341,
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB