From 1a0d017eb4362b93d825aff1bd4db59c1494150f Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 3 Mar 2021 08:20:35 +0100 Subject: [PATCH] Update python.md Formatting --- docs/extend/python.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/extend/python.md b/docs/extend/python.md index fa1849b..74b8f24 100644 --- a/docs/extend/python.md +++ b/docs/extend/python.md @@ -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. - -```