2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 13:46:54 +00:00

Update python.md

Formatting
This commit is contained in:
Michael 2021-03-03 08:20:35 +01:00 committed by GitHub
parent 9e72788845
commit 1a0d017eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,6 +134,9 @@ We can add manufacturers and suppliers to parts. If we add a manufacturer, a sup
```python
from inventree.company import Company
...
acme = Company.create(api, {
'name' : 'ACME',
'description':'A Company that makes everything',
@ -156,6 +159,9 @@ Please recognize the different flag settings for is_supplier and is_manufacturer
```python
from inventree.company import SupplierPart
...
SupplierPart.create(api,{
'part':couch.pk,
'supplier':xstore.pk,
@ -165,5 +171,3 @@ SupplierPart.create(api,{
```
Supplier and manufacturer are added with just one command. The SKU is the code under which the couch is listed in the store. Her we can add price tags later on.
```