From 84033a587dde5bcc6928d33a0748cb4396599f65 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 17 Apr 2022 19:24:00 +0200 Subject: [PATCH 1/2] Update python.md --- docs/extend/python.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/extend/python.md b/docs/extend/python.md index 1588f65..20bf83a 100644 --- a/docs/extend/python.md +++ b/docs/extend/python.md @@ -198,11 +198,15 @@ SupplierPart.create(api,{ 'part':couch.pk, 'supplier':xstore.pk, 'SKU':'some_code', - 'manufacturer':acme.pk + 'link':'https://www.xstore.com...' +}) +SupplierPart.create(api,{ + 'part':couch.pk, + 'manufacturer':acme.pk, + 'MPN':'Part code of the manufacturer' }) -``` -Supplier and manufacturer are added with just one command. The SKU is the code under which the couch is listed in the store. +``` #### Add a datasheet or other documents We have the possibility to add documents to the part. We can use pdf for documents but also other files like 3D drawings or pictures. To do so we add the following commands: From c328e2de59f614fc757e1074d13ebd403fb512fd Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 17 Apr 2022 19:29:26 +0200 Subject: [PATCH 2/2] Update python.md --- docs/extend/python.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/extend/python.md b/docs/extend/python.md index 20bf83a..6757cb5 100644 --- a/docs/extend/python.md +++ b/docs/extend/python.md @@ -162,7 +162,7 @@ Please recognize the different status flags. 10 means OK, 55 means damaged. We h #### Adding manufacturers and supplier -We can add manufacturers and suppliers to parts. If we add a manufacturer, a supplier is also mandatory. So we first need to create two companies, ACME (manufacturer) and X-Store (supplier). +We can add manufacturers and suppliers to parts. We first need to create two companies, ACME (manufacturer) and X-Store (supplier). ```python from inventree.company import Company @@ -198,7 +198,7 @@ SupplierPart.create(api,{ 'part':couch.pk, 'supplier':xstore.pk, 'SKU':'some_code', - 'link':'https://www.xstore.com...' + 'link':'https://www.xst.bla/products/stock?...' }) SupplierPart.create(api,{ 'part':couch.pk,