mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-29 14:16:55 +00:00
Update python.md
This commit is contained in:
parent
84033a587d
commit
c328e2de59
@ -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,7 +198,7 @@ SupplierPart.create(api,{
|
|||||||
'part':couch.pk,
|
'part':couch.pk,
|
||||||
'supplier':xstore.pk,
|
'supplier':xstore.pk,
|
||||||
'SKU':'some_code',
|
'SKU':'some_code',
|
||||||
'link':'https://www.xstore.com...'
|
'link':'https://www.xst.bla/products/stock?...'
|
||||||
})
|
})
|
||||||
SupplierPart.create(api,{
|
SupplierPart.create(api,{
|
||||||
'part':couch.pk,
|
'part':couch.pk,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user