mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-28 05:36:46 +00:00
Merge pull request #264 from SergeoLacruz/master
Fixed errors in adding manufacturer and supplier section of the example
This commit is contained in:
commit
711ada3de4
@ -162,7 +162,7 @@ Please recognize the different status flags. 10 means OK, 55 means damaged. We h
|
|||||||
|
|
||||||
#### Adding manufacturers and supplier
|
#### 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
|
```python
|
||||||
from inventree.company import Company
|
from inventree.company import Company
|
||||||
@ -198,11 +198,15 @@ SupplierPart.create(api,{
|
|||||||
'part':couch.pk,
|
'part':couch.pk,
|
||||||
'supplier':xstore.pk,
|
'supplier':xstore.pk,
|
||||||
'SKU':'some_code',
|
'SKU':'some_code',
|
||||||
'manufacturer':acme.pk
|
'link':'https://www.xst.bla/products/stock?...'
|
||||||
|
})
|
||||||
|
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
|
#### 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:
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user